wrote a simple bpel code: <?xml version="1.0" encoding="UTF-8"?> <process name="review" targetNamespace="urn:author" xmlns:urn="urn:author" xmlns:rev="urn:reviewer" xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2003/03/business-process/ http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
<!-- realizes the abstract relationship with the caller --> <!-- realizes the relationship with the reviewer1 --> <!-- holds the incoming message --> <!-- holds the outgoing message --> <!-- receive a message carrying the name of a person --> <!-- reply with a message carrying the greeting --> the corresponding wsdl is as follows: <?xml version="1.0" encoding="UTF-8"?> <definitions targetNamespace="urn:author" xmlns:urn="urn:author" xmlns:rev="urn:reviewer" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- characterizes the relationship between the process and its caller --> <plt:partnerLinkType name="callerPLT"> <plt:role name="service"> <plt:portType name="urn:callerPT"/> </plt:role> </plt:partnerLinkType> <plt:partnerLinkType name="reviewPLT"> <plt:role name="review"> <plt:portType name="rev:Reviewer"/> </plt:role> </plt:partnerLinkType> <!-- describes the interface presented to callers--> the rev.wsdl of the external web service used is as follows: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="urn:reviewer" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:reviewer" xmlns:intf="urn:reviewer" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:types> <xsd:schema elementFormDefault="qualified" targetNamespace="urn:reviewer"> <xsd:element name="reviewRequest"> <xsd:complexType> <xsd:sequence> <xsd:element name="name" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="reviewResponse"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:int"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </wsdl:types> <wsdl:message name="reviewResponse"> <wsdl:part name="output" element="impl:reviewResponse"/> </wsdl:message> <wsdl:message name="reviewRequest"> <wsdl:part name="in0" element="impl:reviewRequest"/> </wsdl:message> <wsdl:portType name="Reviewer"> <wsdl:operation name="reviewRequest" parameterOrder="in0"> <wsdl:input message="impl:reviewRequest" name="reviewRequest"/> <wsdl:output message="impl:reviewResponse" name="reviewResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="reviewerSoapBinding" type="impl:Reviewer"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="reviewRequest"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="reviewRequest"> <wsdlsoap:body use="literal"/> <!--encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:reviewer" --> </wsdl:input> <wsdl:output name="reviewResponse"> <wsdlsoap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="ReviewerService"> <wsdl:port binding="impl:reviewerSoapBinding" name="reviewer"> <wsdlsoap:address location="http://localhost:8080/reviewer/reviewer"/> </wsdl:port> </wsdl:service> </wsdl:definitions> in the "binding.xml" generated after generate-artifacts, the style has been changed to document/literal. the web-service involved also supports doc/lit format. the bpel process gets deployed. using wsdl2Java, the client is generated. i get the following error: 2006-08-21 12:05:32,093 ERROR [org.jboss.webservice.handler.HandlerChainBaseImpl] RuntimeException in request handler java.lang.NullPointerException at org.jbpm.bpel.service.provider.PortProvider.getRequestParts(PortProvider.java:363) at org.jbpm.bpel.service.provider.PortProvider.sendRequest(PortProvider.java:316) at org.jbpm.bpel.service.provider.PortProvider.handleRequest(PortProvider.java:202) at org.jboss.webservice.handler.HandlerWrapper.handleRequest(HandlerWrapper.java:106) at org.jboss.webservice.handler.HandlerChainBaseImpl.handleRequest(HandlerChainBaseImpl.java:216) at org.jboss.webservice.handler.ServerHandlerChain.handleRequest(ServerHandlerChain.java:52) at org.jboss.webservice.server.InvokerProviderJSE.invokeTarget(InvokerProviderJSE.java:74) at org.jboss.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:121) at org.jboss.axis.providers.java.JavaProvider.invoke(JavaProvider.java:358) at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73) at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160) at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123) at org.jboss.axis.handlers.soap.SOAPService.invoke(SOAPService.java:560) at org.jboss.webservice.server.ServerEngine.invokeInternal(ServerEngine.java:200) at org.jboss.webservice.server.ServerEngine.invoke(ServerEngine.java:89) at org.jboss.axis.transport.http.AxisServlet.doPost(AxisServlet.java:911) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) can somebody please help out with this problem?? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966406#3966406 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966406 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user