ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anup Chandran <anup.chand...@3ds.com>
Subject Re: Binding defines non-element document literal part(s)
Date Thu, 09 Aug 2007 14:08:58 GMT

Here is the wsdl snippet:

	<types>
		<schema attributeFormDefault="unqualified"
			elementFormDefault="qualified"
			targetNamespace="http://eclipse.org/bpel/sample"
			xmlns="http://www.w3.org/2001/XMLSchema">

			<element name="ECRProcessResponse" type="string" />

			<element name="ECRRequestMessage">
			<complexType>
			<sequence>
				<element name="username" type="string"></element>

				<element name="password" type="string"></element>

				<element name="type" type="string"></element>

				<element name="name" type="string"></element>

				<element name="revision" type="string"></element>

				<element name="policy" type="string"></element>

			</sequence>
			</complexType>
			</element>
		</schema>
	</types>


	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		MESSAGE TYPE DEFINITION - Definition of the message types used as 
		part of the port type defintions
		~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<message name="ECRProcessRequestMessage">
		<part name="payload" element="tns:ECRRequestMessage" />
	</message>

	<message name="ECRProcessResponseMessage">
		<part name="payload" element="tns:ECRProcessResponse" />
	</message>


The test request is :

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <!-- test soap message -->
  <SOAP-ENV:Body>
  <tns:ECRRequestMessage>
      <tns:receiveIssue> </tns:receiveIssue>
      <tns:username>Test Everything </tns:username>
      <tns:password>1234 </tns:password>
      <tns:type>ECR </tns:type>
      <tns:name>ECR01001 </tns:name>
      <tns:revision>-</tns:revision>
      <tns:policy>ECR (Standard)</tns:policy>
      
  </tns:ECRRequestMessage>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


The error is :

Aug 9, 2007 10:01:33 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 9, 2007 10:01:33 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 24284 ms
ERROR - GeronimoLog.error(108) | Servlet.service() for servlet AxisServlet
threw
 exception
java.lang.NullPointerException
        at
org.apache.axis2.engine.AxisEngine.extractFaultInformationFromMessage
Context(AxisEngine.java:353)
        at
org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngi
ne.java:249)
        at
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.j
ava:317)
        at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:2
77)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)
10:02:06,806 ERROR [[AxisServlet]] Servlet.service() for servlet AxisServlet
thr
ew exception
java.lang.NullPointerException
        at
org.apache.axis2.engine.AxisEngine.extractFaultInformationFromMessage
Context(AxisEngine.java:353)
        at
org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngi
ne.java:249)
        at
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.j
ava:317)
        at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:2
77)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP



Alex im not sure about the testrequest.soap.

Shouldn't the first element in the request be the method/operation name?
followed by elements in the message?

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <!-- test soap message -->
  <SOAP-ENV:Body>
  <tns:receiveIssue> 
  <tns:ECRRequestMessage>
    <tns:username>Test Everything </tns:username>
      <tns:password>1234 </tns:password>
      <tns:type>ECR </tns:type>
      <tns:name>ECR01001 </tns:name>
      <tns:revision>-</tns:revision>
      <tns:policy>ECR (Standard)</tns:policy>
  </tns:ECRRequestMessage>
</tns:receiveIssue>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Result:


i tried that too....

ERROR - GeronimoLog.error(108) | Servlet.service() for servlet AxisServlet
threw
 exception
java.lang.NullPointerException
        at
org.apache.axis2.engine.AxisEngine.extractFaultInformationFromMessage
Context(AxisEngine.java:353)
        at
org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngi
ne.java:249)
        at
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.j
ava:317)
        at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:2
77)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)



Alex Boisvert wrote:
> 
> On 8/8/07, Anup Chandran <anup.chandran@3ds.com> wrote:
>>
>>
>> Alex thanks for the quick response....
>>
>> I changed the wsdl to define the part as element.
>>
>> WSDL modified to:
>>
>>         <message name="ECRProcessRequestMessage">
>>                 <part name="payload" element="tns:ECRRequestMessage" />
>>         </message>
> 
> 
> 
> Did you also change tns:ECRRequestMessage to be an element (of
> complexType)?
> 
> If so, your SOAP request should be:
> 
> <tns:ECRRequestMessage>
>     <tns:receiveIssue> ... </tns:receiveIssue>
>     <tns:username> ...  </tns:username>
>     ....
>     ....
> </tns:ECRRequestMessage>
> 
> alex
> 
> 

-- 
View this message in context: http://www.nabble.com/Binding-defines-non-element-document-literal-part%28s%29-tf4239227.html#a12073054
Sent from the Apache Ode User mailing list archive at Nabble.com.


Mime
View raw message