• Register Now
  • Forgot Password?
Intalio
  • Product
  • Services
  • Partners
  • Customers
  • Community
  • Company
  • Documentation
  • Discussions
  • Roadmap
  • Events

Discussions


Discussions about Intalio|BPP Community Edition.


Back to German Forum (0 viewing) 
Go to bottom
Post Reply
Favoured: 0
TOPIC: Re:Rest Connector mit XML Return
Forum Tools
  • Post New Topic
  • Show latest posts
  • Rules
Apr 21, 2010 4:02 pm
lutz.vahl (User)
4 posts
Fresh Boarder

Karma: 0  
Hi @All,

ich versuche gerade einen Rest Service zu Callen und die Response (XML) auf ein XSD zu mappen und dann anzuzeigen. Leider klappt es nicht.

Im Log sieht man, dass das XML vom Service ankommt, jedoch werden die Elemente <message><response> hinzugefügt!! Das Mapping schlägt dann fehl.

Wenn ich das Mapping weglasse, läuft der Prozess fehlerfrei durch..

Das Projekt habe ich angehangen, der REST Service liegt bei Google Apps, kann also jeder testen!

Der Fehler am Fontend:
fault:
exceptionClass: org.apache.axis2.AxisFault
message: axis2ns1:selectionFailure


Der Fehler im Log:

15:47:31,013 140244 INFO [org.apache.ode.axis2.ExternalService] (ODEServer-18:) Response: <?xml version="1.0" encoding="UTF-8"?>
<message><response><person><first_name>Bruce</first_name><last_name>Willis</last_name></person></response></message>
15:47:31,278 140509 INFO [org.apache.ode.bpel.runtime.ASSIGN] (ODEServer-21:) Assignment Fault: {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=42,faultExplanation=Unknown variable testGETResponseMsg.response
15:47:31,590 140821 DEBUG [httpclient.wire.header] (http-8080-Processor18:) << "HTTP/1.1 500 Internal Server Error[\r][\n]"
15:47:31,590 140821 DEBUG [httpclient.wire.header] (http-8080-Processor18:) << "HTTP/1.1 500 Internal Server Error[\r][\n]"
15:47:31,590 140821 DEBUG [httpclient.wire.header] (http-8080-Processor18:) << "Server: Apache-Coyote/1.1[\r][\n]"
15:47:31,606 140837 DEBUG [httpclient.wire.header] (http-8080-Processor18:) << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
15:47:31,606 140837 DEBUG [httpclient.wire.header] (http-8080-Processor18:) << "Transfer-Encoding: chunked[\r][\n]"
15:47:31,606 140837 DEBUG [httpclient.wire.header] (http-8080-Processor18:) << "Date: Wed, 21 Apr 2010 13:47:31 GMT[\r][\n]"
15:47:31,606 140837 DEBUG [httpclient.wire.header] (http-8080-Processor18:) << "Connection: close[\r][\n]"
15:47:31,606 140837 DEBUG [httpclient.wire.header] (http-8080-Processor18:) << "[\r][\n]"
15:47:31,606 140837 DEBUG [httpclient.wire.content] (http-8080-Processor18:) << "1"
15:47:31,606 140837 DEBUG [httpclient.wire.content] (http-8080-Processor18:) << "6"
15:47:31,606 140837 DEBUG [httpclient.wire.content] (http-8080-Processor18:) << "e"
15:47:31,606 140837 DEBUG [httpclient.wire.content] (http-8080-Processor18:) << "[\r]"
15:47:31,606 140837 DEBUG [httpclient.wire.content] (http-8080-Processor18:) << "[\n]"
15:47:31,606 140837 DEBUG [httpclient.wire.content] (http-8080-Processor18:) << "<?xm"
15:47:31,606 140837 DEBUG [httpclient.wire.content] (http-8080-Processor18:) << "l version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring xmlns:axis2ns1="http://docs.oasis-open.org/wsbpel/2.0/process/executable">axis2ns1:selectionFailure</faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope>"
15:47:31,637 140868 ERROR [com.intalio.bpms.wsi.servlets.ws.WebServiceInvocationRequestProcessor] (http-8080-Processor18:) Error processing XML request
java.lang.RuntimeException: org.apache.axis2.AxisFault: axis2ns1:selectionFailure
at com.intalio.bpms.wsi.servlets.ws.WebServiceInvocationRequestProcessor.buildResponse(WebServiceInvocationRequestProcessor.java:219)
at com.intalio.bpms.wsi.servlets.XMLRequestProcessor.processRequest(XMLRequestProcessor.java:54)
at com.intalio.bpms.wsi.servlets.XMLRequestProcessorServlet.doPost(XMLRequestProcessorServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.axis2.AxisFault: axis2ns1:selectionFailure
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
at com.intalio.bpms.wsi.servlets.ws.WebServiceInvocationRequestProcessor.buildResponse(WebServiceInvocationRequestProcessor.java:201)
... 18 more
File Attachment:
File Name: TestRestCall.zip
File Size: 47510
 
  The administrator has disabled public write access.
Apr 21, 2010 5:44 pm
andreas.boehm (Moderator)
65 posts
Moderator

Karma: 3  
Hallo,
ein Selection-Failure bedeutet immer, dass der Prozess die erwarteten Werte nicht gefunden hat.

Also das beispielsweise das Element "name" gemapped wurde, es aber nicht geschickt wurde.

Das kann z.B. durch optionale Elemente in einer WSDL oder durch eine nicht mehr aktuelle WSDL verursacht werden.

gehen sie mal in die BPMS-Console und sehen sie sich die Antwort von Google an, wenn sie mal das Mapping herausnehmen, so dass der Prozess durchläuft. Vergleichen sie die Antwort dann mit ihrem Mapping.

Gruß
 
  The administrator has disabled public write access.
Apr 21, 2010 7:47 pm
lutz.vahl (User)
4 posts
Fresh Boarder

Karma: 0  
Hi, danke für die Antwort. Das ist die Response, wenn das Mapping drinnen ist (Ohne mapping sieht die response genauso aus!)

Part: response
<person>
<first_name>Bruce</first_name>
<last_name>Willis</last_name>
</person>
Part: Transfer-Encodingchunked
Part: DateWed, 21 Apr 2010 17:31:35 GMT
Part: Content-Typetext/xml
Part: ServerGoogle Frontend
Part: Cache-Controlprivate, x-gzip-ok=""
Part: Status-Line
<Status-Line>
<HTTP-Version>HTTP/1.1</HTTP-Version>
<Status-Code>200</Status-Code>
<Reason-Phrase>OK</Reason-Phrase>
<original>HTTP/1.1 200 OK</original>
</Status-Line>

Und das ist das XSD Schema:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns:this="http:///WSTest/PersonData.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http:///WSTest/PersonData.xsd">
<xsd:complexType name="person">
<xsd:sequence>
<xsd:element name="first_name" type="xsd:string"></xsd:element>
<xsd:element name="last_name" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="person" type="this:person"></xsd:element>
</xsd:schema>

Fehler ist immer noch der Selbe,...: faultExplanation=Unknown variable testGETResponseMsg.response

Sieht jemand einen Fehler?
 
  The administrator has disabled public write access.
Go to top Post Reply
Forum List International Zone German Forum
get the latest posts directly to your desktop
 

Top Posters

Last 30 days

  • jean.bernard.wansi (9)
  • niki.w (7)
  • danny.gallagher (7)
  • bruker.bruker (5)
  • marcelo.balisa (4)
  • pourdad.daneshmand (4)
  • ravinderjit.singh (2)
  • giocarmine.gio (2)
  • pavel.khodchenkov (1)
  • mikko.savolainen (1)

All time

  • Shivanand (1216)
  • cshekhar (933)
  • psq (797)
  • metabyte (415)
  • jag (393)
  • ravinderjit.singh (393)
  • dfrench (369)
  • arnaud (329)
  • jalateras (325)
  • talita.pezzi (279)

Show last 4 hrs - 12 hrs - 24 hrs

Latest Posts

  • Reusing pools and lanes across business ... by kutter
  • Re:Webservice asynchronous and input me ... by chantal.valverde
  • Re:XSD Attribute and Correlation by wilmercisneros
  • Re:Process Automation by jean.bernard.wansi
  • Re:partner link error by danny.gallagher

Show last 6 hrs - 24 hrs - 7 days

Copyright © Intalio, 1999-2012.

  • Copyright Notice |
  • Privacy Policy |
  • User Agreement