Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Unmarshall Exception while using AbstractMarshallingPayloadEndpoint

  1. #11

    Default

    Could you show the generated wsdl (if any) or full xsd?


    Also place the schema to the WEB-INF\classes to be sure that it is avail int the classpath and reference it as:

    Code:
    <property name="schema" value="classpath:ProjectSearch.xsd"/>
    Again please check:
    Code:
    <bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
      <property name="mtomEnabled" value="false" />
      <property name="contextPath" value="org.wsrtm"/>
      <property name="schema" value="classpath:ProjectSearch.xsd"/>
    </bean>
    Last edited by exgorth; Oct 9th, 2007 at 03:06 AM. Reason: addition

  2. #12
    Join Date
    Aug 2007
    Posts
    15

    Default

    I have attached the xsd and xmls I am using:
    Last edited by prasanthnath; Oct 19th, 2007 at 07:14 AM.

  3. #13
    Join Date
    Aug 2007
    Posts
    15

    Default

    Thanx for ur patience Exgorth.

    I tried out including the schema property. Also I have included the target name spaces.But still it is giving the same error.

  4. #14

    Default

    1. included xml is not valid (not conforms to it's included schema). the schema is valid, but what are the element definitions for soap requests/responses?

    2. how do you exposing wsdl from webapp? Please post the bean config (if y have one)

  5. #15
    Join Date
    Aug 2007
    Posts
    15

    Default

    Sorry, The xml i have attached in the previous link is a older one.
    Here is the newer one. Also this conforms to the xsd I sent u..

    <?xml version="1.0" encoding="UTF-8"?>
    <tns:ProjectSearch xmlns:tns="http://www.reflexisinc.com/schemas" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.reflexisinc.com/schemas ../xsd/projectsearch.xsd ">
    <tns:Project tns:RTMCase="MATCH" tns:RTMMatch="EXACT" tns:RTMValue="ID">COM</tns:Project>
    </tns:ProjectSearch>
    This is the Soap message developed:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
    <wsi:ReflexisSoapHeader xmlns:wsi="http://www.reflexisinc.com/" authType="001" clientId="FIT" operation="Fetch Projects created by the User" ownerId="2009" password="REFLEXIS" pwd="13332" service="ProjectSearch" uId="13332" unitId="CORP" userId="REFLEXIS" userProfileName="Project Gatekeeper - Corporate">WebServices</wsi:ReflexisSoapHeader>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <tns:ProjectSearch xmlns:tns="http://www.reflexisinc.com/schemas" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.reflexisinc.com/schemas ../xsd/projectsearch.xsd ">
    <tns:Project tns:RTMCase="MATCH" tns:RTMMatch="EXACT" tns:RTMValue="ID">COM</tns:Project>
    </tns:ProjectSearch>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    This is the error:

    2007-10-09 15:56:18,187 DEBUG [org.springframework.ws.soap.server.SoapMessageDisp atcher] - Testing endpoint exception resolver [org.springframework.ws.soap.server.endpoint.Simple SoapExceptionResolver@1e6743e]
    2007-10-09 15:56:18,187 WARN [org.springframework.ws.soap.server.SoapMessageDisp atcher] - Endpoint invocation resulted in exception - responding with SOAP Fault
    org.springframework.oxm.jaxb.JaxbUnmarshallingFail ureException: JAXB unmarshalling exception: unexpected element (uri:"http://www.reflexisinc.com/schemas", local:"ProjectSearch"). Expected elements are <{}Department>,<{}IncludeAlerts>,<{}IncludeAttachm ents>,<{}IncludeDependencies>,<{}IncludeDetails>,< {}IncludeFeedback>,<{}IncludeMessages>,<{}IncludeN otes>,<{}IncludeStatusSummary>,<{}Profile>,<{}Proj ectInitiatorList>,<{}ProjectSearch>,<{}RTMSort>,<{ }ResponseSummary>,<{}SearchDepartment>,<{}SearchPr ofile>,<{}SearchUnit>,<{}SearchUser>,<{}Unit>,<{}U ser>; nested exception is javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.reflexisinc.com/schemas", local:"ProjectSearch"). Expected elements are <{}Department>,<{}IncludeAlerts>,<{}IncludeAttachm ents>,<{}IncludeDependencies>,<{}IncludeDetails>,< {}IncludeFeedback>,<{}IncludeMessages>,<{}IncludeN otes>,<{}IncludeStatusSummary>,<{}Profile>,<{}Proj ectInitiatorList>,<{}ProjectSearch>,<{}RTMSort>,<{ }ResponseSummary>,<{}SearchDepartment>,<{}SearchPr ofile>,<{}SearchUnit>,<{}SearchUser>,<{}Unit>,<{}U ser>
    Caused by:
    javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.reflexisinc.com/schemas", local:"ProjectSearch"). Expected elements are <{}Department>,<{}IncludeAlerts>,<{}IncludeAttachm ents>,<{}IncludeDependencies>,<{}IncludeDetails>,< {}IncludeFeedback>,<{}IncludeMessages>,<{}IncludeN otes>,<{}IncludeStatusSummary>,<{}Profile>,<{}Proj ectInitiatorList>,<{}ProjectSearch>,<{}RTMSort>,<{ }ResponseSummary>,<{}SearchDepartment>,<{}SearchPr ofile>,<{}SearchUnit>,<{}SearchUser>,<{}Unit>,<{}U ser>
    Last edited by prasanthnath; Oct 9th, 2007 at 05:33 AM.

  6. #16

    Default

    1. Could you post your full servlet.xml spring config file for spring-ws message dispatcher (org.springframework.ws.transport.http.MessageDisp atcherServlet)?

    2. Why do you need xsi:schemaLocation="http://www.reflexisinc.com/schemas ../xsd/projectsearch.xsd " in the payload?
    Try this:
    Code:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
     <SOAP-ENV:Header>
       <wsi:ReflexisSoapHeader xmlns:wsi="http://www.reflexisinc.com/" authType="001" clientId="FIT" operation="Fetch Projects created by the User" ownerId="2009" password="REFLEXIS" pwd="13332" service="ProjectSearch" uId="13332" unitId="CORP" userId="REFLEXIS" userProfileName="Project Gatekeeper - Corporate">WebServices</wsi:ReflexisSoapHeader>
     </SOAP-ENV:Header>
     <SOAP-ENV:Body>
      <tns:ProjectSearch xmlns:tns="http://www.reflexisinc.com/schemas">
    	<tns:Project tns:RTMCase="MATCH" tns:RTMMatch="EXACT" tns:RTMValue="ID">COM</tns:Project>
    </tns:ProjectSearch>
     </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

  7. #17
    Join Date
    Aug 2007
    Posts
    15

    Default

    1.I have attached the dipatcher servlet code
    2.Regarding the namespace in the payload, the xml is an autogenerated file from eclipse
    Attached Files Attached Files
    Last edited by prasanthnath; Oct 9th, 2007 at 05:56 AM. Reason: Hav to attach the code

  8. #18

    Default

    Why does wsdl definition builder is commented out? How does any client of web service will know what to invoke? And how do you invoking this web service?

  9. #19
    Join Date
    Aug 2007
    Posts
    15

    Default

    We have endpoint mapping in the servlet.xml. It will be done that way

  10. #20
    Join Date
    Aug 2007
    Posts
    15

    Default

    The call method od SAAJ is used to invoke the webservice

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •