Announcement Announcement Module
Collapse
No announcement yet.
Unmarshall Exception while using AbstractMarshallingPayloadEndpoint Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    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>

    Comment


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

      Comment


      • #18
        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?

        Comment


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

          Comment


          • #20
            The call method od SAAJ is used to invoke the webservice

            Comment


            • #21
              Originally posted by prasanthnath View Post
              post 145241
              The error says that unmarshaller does not expect ProjectSearch element, but some element that should look like:
              Code:
              <payload>
              	<Department/>
              	<IncludeAlerts/>
              	<IncludeAttachments/>
              	<IncludeDependencies/>
              	<IncludeDetails/>
              	<IncludeFeedback/>
              	<IncludeMessages/>
              	<IncludeNotes/>
              	<IncludeStatusSummary/>
              	<Profile/>
              	<ProjectInitiatorList/>
              	<ProjectSearch/>
              	<RTMSort/>
              	<ResponseSummary/>
              	<SearchDepartment/>
              	<SearchProfile/>
              	<SearchUnit/>
              	<SearchUser/>
              	<Unit/>
              	<User/>
              </payload>
              Why does it expects such payload? Please, post your wsdl (see my prev post)

              Comment


              • #22
                You could uncomment wsdl builder bean definition and have it regenerate a wsdl for you - i think that wsdl is sort of a problem for SWS.

                Please, see SWS reference guide or samples - just provide suffixes for request and response and let SWS generate and maintain wsdl for you.


                By the way, i've generated sample request to 'NewOperation' from attached wsdl with soapui:
                Code:
                <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:RfxwsvNamespace">
                   <soapenv:Header/>
                   <soapenv:Body>
                      <urn:ProjectSearch>
                         <!--Zero or more repetitions:-->
                         <urn:Project urn:RTMCase="IGNORE" urn:RTMMatch="LIKE" urn:RTMValue="ID">gero et</urn:Project>
                         <!--Zero or more repetitions:-->
                         <urn:Creator>
                            <!--Zero or more repetitions:-->
                            <urn:SearchUser urn:RTMValue="ID" urn:RTMMatch="LIKE" urn:RTMCase="IGNORE">sonoras imperio</urn:SearchUser>
                            <!--Zero or more repetitions:-->
                            <urn:SearchUnit urn:RTMMatch="LIKE" urn:RTMValue="ID" urn:RTMCase="IGNORE">quae divum incedo</urn:SearchUnit>
                            <!--Zero or more repetitions:-->
                            <urn:SearchDepartment urn:RTMValue="ID" urn:RTMMatch="LIKE" urn:RTMCase="IGNORE">verrantque per auras</urn:SearchDepartment>
                            <!--Zero or more repetitions:-->
                            <urn:SearchProfile urn:RTMValue="ID" urn:RTMMatch="LIKE" urn:RTMCase="IGNORE">per auras</urn:SearchProfile>
                         </urn:Creator>
                         <!--Zero or more repetitions:-->
                         <urn:Approver>
                            <!--Zero or more repetitions:-->
                            <urn:SearchUser urn:RTMValue="ID" urn:RTMMatch="LIKE" urn:RTMCase="IGNORE">circum claustra</urn:SearchUser>
                            <!--Zero or more repetitions:-->
                            <urn:SearchUnit urn:RTMMatch="LIKE" urn:RTMValue="ID" urn:RTMCase="IGNORE">nimborum in</urn:SearchUnit>
                            <!--Zero or more repetitions:-->
                            <urn:SearchDepartment urn:RTMValue="ID" urn:RTMMatch="LIKE" urn:RTMCase="IGNORE">foedere certo</urn:SearchDepartment>
                            <!--Zero or more repetitions:-->
                            <urn:SearchProfile urn:RTMValue="ID" urn:RTMMatch="LIKE" urn:RTMCase="IGNORE">profundum quippe ferant</urn:SearchProfile>
                         </urn:Approver>
                         <!--Zero or more repetitions:-->
                         <urn:AssignedTo>
                            <!--Zero or more repetitions:-->
                            <urn:SearchUser urn:RTMValue="ID" urn:RTMMatch="LIKE" urn:RTMCase="IGNORE">et carcere</urn:SearchUser>
                            <!--Zero or more repetitions:-->
                            <urn:SearchUnit urn:RTMMatch="LIKE" urn:RTMValue="ID" urn:RTMCase="IGNORE">iovis rapidum iaculata</urn:SearchUnit>
                            <!--Zero or more repetitions:-->
                            <urn:SearchDepartment urn:RTMValue="ID" urn:RTMMatch="LIKE" urn:RTMCase="IGNORE">speluncis abdidit</urn:SearchDepartment>
                            <!--Zero or more repetitions:-->
                            <urn:SearchProfile urn:RTMValue="ID" urn:RTMMatch="LIKE" urn:RTMCase="IGNORE">bella gero et</urn:SearchProfile>
                         </urn:AssignedTo>
                         <!--Zero or more repetitions:-->
                         <urn:ProjectType urn:RTMValue="ID">flammas turbine</urn:ProjectType>
                         <!--Optional:-->
                         <!--type: date-->
                         <urn:StartDate>2002-11-16+03:00</urn:StartDate>
                         <!--Optional:-->
                         <!--type: date-->
                         <urn:EndDate>2000-09-14</urn:EndDate>
                         <!--Zero or more repetitions:-->
                         <urn:ProjectStatus urn:RTMValue="ID">aris imponet honorem</urn:ProjectStatus>
                         <!--Zero or more repetitions:-->
                         <urn:Priority urn:RTMValue="ID">praeterea aut</urn:Priority>
                         <!--Zero or more repetitions:-->
                         <urn:Task urn:RTMValue="ID">claustra fremunt</urn:Task>
                         <!--Optional:-->
                         <!--anonymous type - enumeration: [PROJECTLIST,STOREVIEW,CUSTOM,MYVIEW,FIELDVIEW,APPROVERVIEW]-->
                         <urn:SearchType>STOREVIEW</urn:SearchType>
                         <!--Optional:-->
                         <!--anonymous type - enumeration: [DEFAULT,WHAT'S NEW,DUE THIS WEEK,DUE NEXT WEEK,OVERDUE]-->
                         <urn:QuickFilter>DEFAULT</urn:QuickFilter>
                         <!--Optional:-->
                         <urn:Include>
                            <!--Optional:-->
                            <!--anonymous type - enumeration: [YES,NO]-->
                            <urn:IncludeDetails>NO</urn:IncludeDetails>
                            <!--Optional:-->
                            <!--anonymous type - enumeration: [BOTH,NAME,CONTENT]-->
                            <urn:IncludeAttachments>BOTH</urn:IncludeAttachments>
                            <!--Optional:-->
                            <!--anonymous type - enumeration: [YES,NO,SUMMARY,TEXT]-->
                            <urn:IncludeNotes>YES</urn:IncludeNotes>
                            <!--Optional:-->
                            <!--anonymous type - enumeration: [YES,NO]-->
                            <urn:IncludeMessages>NO</urn:IncludeMessages>
                            <!--Optional:-->
                            <!--anonymous type - enumeration: [YES,NO]-->
                            <urn:IncludeDependencies>NO</urn:IncludeDependencies>
                            <!--Optional:-->
                            <!--anonymous type - enumeration: [YES,NO]-->
                            <urn:Prerequisites>YES</urn:Prerequisites>
                            <!--Optional:-->
                            <urn:Tasks>
                               <!--Optional:-->
                               <!--anonymous type - enumeration: [YES,NO]-->
                               <urn:IncludeDetails>NO</urn:IncludeDetails>
                               <!--Optional:-->
                               <!--anonymous type - enumeration: [BOTH,NAME,CONTENT]-->
                               <urn:IncludeAttachments>CONTENT</urn:IncludeAttachments>
                               <!--Optional:-->
                               <!--anonymous type - enumeration: [YES,NO,SUMMARY,TEXT]-->
                               <urn:IncludeNotes>YES</urn:IncludeNotes>
                               <!--Optional:-->
                               <!--anonymous type - enumeration: [YES,NO]-->
                               <urn:IncludeDependencies>YES</urn:IncludeDependencies>
                               <!--Optional:-->
                               <urn:IncludeFeedback>
                                  <!--Optional:-->
                                  <!--anonymous type - enumeration: [ALL,OVERDUE,COMPLETION,FORCECLOSE]-->
                                  <urn:Questions>OVERDUE</urn:Questions>
                                  <!--Optional:-->
                                  <!--anonymous type - enumeration: [NONE,DETAILS,SUMMARY,BOTH]-->
                                  <urn:Responses>NONE</urn:Responses>
                               </urn:IncludeFeedback>
                               <!--Optional:-->
                               <!--anonymous type - enumeration: [BOTH,DETAILS,RAISED]-->
                               <urn:IncludeAlerts>BOTH</urn:IncludeAlerts>
                               <!--Optional:-->
                               <!--anonymous type - enumeration: [YES,NO]-->
                               <urn:AdditionalInfo>NO</urn:AdditionalInfo>
                               <!--Optional:-->
                               <!--anonymous type - enumeration: [NONE,SUMMARY,DETAIL,BOTH]-->
                               <urn:IncludeStatusSummary>DETAIL</urn:IncludeStatusSummary>
                            </urn:Tasks>
                            <!--Optional:-->
                            <urn:IncludeFeedback>
                               <!--Optional:-->
                               <!--anonymous type - enumeration: [ALL,OVERDUE,COMPLETION,FORCECLOSE]-->
                               <urn:Questions>FORCECLOSE</urn:Questions>
                               <!--Optional:-->
                               <!--anonymous type - enumeration: [NONE,DETAILS,SUMMARY,BOTH]-->
                               <urn:Responses>NONE</urn:Responses>
                            </urn:IncludeFeedback>
                            <!--Optional:-->
                            <!--anonymous type - enumeration: [BOTH,DETAILS,RAISED]-->
                            <urn:IncludeAlerts>RAISED</urn:IncludeAlerts>
                            <!--Optional:-->
                            <!--anonymous type - enumeration: [NONE,SUMMARY,DETAIL,BOTH]-->
                            <urn:IncludeStatusSummary>DETAIL</urn:IncludeStatusSummary>
                            <!--Optional:-->
                            <!--anonymous type - enumeration: [NONE,SUMMARY,DETAIL]-->
                            <urn:IncludeRolloutSchedule>SUMMARY</urn:IncludeRolloutSchedule>
                         </urn:Include>
                         <!--Optional:-->
                         <urn:RTMSort>
                            <urn:Element Order="ASC">et quisquam</urn:Element>
                         </urn:RTMSort>
                      </urn:ProjectSearch>
                   </soapenv:Body>
                </soapenv:Envelope>

                Or you could just wait till Mr. Arjen will answer your question

                Comment


                • #23
                  Yaa..The problem is solved. Itz with the target namesapce..Thanx for all the help provided []
                  Last edited by prasanthnath; Oct 22nd, 2007, 10:01 AM.

                  Comment

                  Working...
                  X