Loading ...
Sorry, an error occurred while loading the content.

Re: [soapbuilders] little interop problem: SOAP/WSA/WSRF/WSDM

Expand Messages
  • Ashutosh Shahi
    One anomaly that I noticed is that you are using Content-Type as application/soap+xml with a SOAP 1.1 message. Though this is no reason for sending faultcode
    Message 1 of 3 , Jun 7, 2006
    • 0 Attachment
      One anomaly that I noticed is that you are using Content-Type as
      application/soap+xml with a SOAP 1.1 message.
      Though this is no reason for sending faultcode as Server. In anycase I
      thought to point out this.

      Thanks,
      Ashutosh


      Steve Loughran wrote:
      > I am trying to talk with other endpoints that implement a WSRF/WSDM
      > based API, but am failing on every request. They can talk to my
      > endpoint, but whenever my client talks to them I get a stack trace
      > that indicates that Axis has caught a runtime exception and wrapped it
      > into an Axis fault -without saying what the nested exception is.
      >
      > So, while I try and convince the remote endpoints to do better
      > debugging, can I ask the experts in diagnosing interop problems out
      > there to take a quick look at this request and tell me what I'm
      > getting wrong. I'd thought sending an empty <wsa:MessageID /> header
      > was a possible cause, but that is clearly not it.
      >
      > -steve
      >
      > ps, on a related note, whose SOAP proxy tools can forward the request
      > onto a real proxy? It is very hard to debug long-haul interop if you
      > can't chain proxies.
      >
      >
      > POST http://example.org:9090/cddlm/services/portal HTTP/1.1
      > SOAPAction:
      > User-Agent: Jakarta Commons-HttpClient/3.0
      > Host: cddlm.nec-labs.com:9090
      > Proxy-Connection: Keep-Alive
      > Content-Length: 758
      > Content-Type: application/soap+xml
      >
      > <?xml version="1.0" encoding="UTF-8"?>
      > <Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
      > xmlns="http://schemas.xmlsoap.org/soap/envelope/">
      > <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing">
      > <wsa:To soap:mustUnderstand="1">http://example.org:9090/cddlm/services/portal</wsa:To>
      > <wsa:MessageID soap:mustUnderstand="1">uuid:9ae9901b-9ff0-4c8f-b569-4a8e6761bd0f-0</wsa:MessageID>
      > <wsa:Action soap:mustUnderstand="1">GetResourceProperty</wsa:Action>
      > </Header>
      > <Body>
      > <GetResourceProperty
      > xmlns:getprop_ns="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd"
      > xmlns="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd">getprop_ns:ResourceId</GetResourceProperty>
      > </Body>
      > </Envelope>
      >
      >
      >
      > <?xml version="1.0" encoding="UTF-8"?>
      > <Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/">
      > <faultcode xmlns:ns1="http://xml.apache.org/axis/"
      > xmlns="">ns1:Server</faultcode>
      > <faultstring xmlns="">Server Error</faultstring>
      > <detail xmlns="">
      > <stackTrace xmlns:ns2="http://xml.apache.org/axis/"
      > xmlns="http://xml.apache.org/axis/">Server
      > Error at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:473)
      > at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
      > at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
      > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
      > at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
      > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      > 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.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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      > at java.lang.Thread.run(Thread.java:595) </stackTrace>
      > <hostname xmlns:ns3="http://xml.apache.org/axis/"
      > xmlns="http://xml.apache.org/axis/">example.org</hostname>
      > </detail>
      > </Fault>
      >
      > Disclaimer. The contents of this post do not emply an endorsement of
      > WSDM, WSRF, WSA or even SOAP.
      >
      >
      >
      > -----------------------------------------------------------------
      > This group is a forum for builders of SOAP implementations to discuss implementation and interoperability issues. Please stay on-topic.
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >
    • Steve Loughran
      ... I tried text/xml; same result. I am starting to suspect that the cause is that my wsa:Action isnt a valid URI. thanks anyway, -steve
      Message 2 of 3 , Jun 7, 2006
      • 0 Attachment
        On 6/7/06, Ashutosh Shahi <ashutosh.shahi@...> wrote:
        > One anomaly that I noticed is that you are using Content-Type as
        > application/soap+xml with a SOAP 1.1 message.
        > Though this is no reason for sending faultcode as Server. In anycase I
        > thought to point out this.

        I tried text/xml; same result. I am starting to suspect that the
        cause is that my wsa:Action isnt a valid URI.

        thanks anyway,

        -steve
        >
        > Thanks,
        > Ashutosh
        >
        >
        > Steve Loughran wrote:
        > > I am trying to talk with other endpoints that implement a WSRF/WSDM
        > > based API, but am failing on every request. They can talk to my
        > > endpoint, but whenever my client talks to them I get a stack trace
        > > that indicates that Axis has caught a runtime exception and wrapped it
        > > into an Axis fault -without saying what the nested exception is.
        > >
        > > So, while I try and convince the remote endpoints to do better
        > > debugging, can I ask the experts in diagnosing interop problems out
        > > there to take a quick look at this request and tell me what I'm
        > > getting wrong. I'd thought sending an empty <wsa:MessageID /> header
        > > was a possible cause, but that is clearly not it.
        > >
        > > -steve
        > >
        > > ps, on a related note, whose SOAP proxy tools can forward the request
        > > onto a real proxy? It is very hard to debug long-haul interop if you
        > > can't chain proxies.
        > >
        > >
        > > POST http://example.org:9090/cddlm/services/portal HTTP/1.1
        > > SOAPAction:
        > > User-Agent: Jakarta Commons-HttpClient/3.0
        > > Host: cddlm.nec-labs.com:9090
        > > Proxy-Connection: Keep-Alive
        > > Content-Length: 758
        > > Content-Type: application/soap+xml
        > >
        > > <?xml version="1.0" encoding="UTF-8"?>
        > > <Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
        > > xmlns="http://schemas.xmlsoap.org/soap/envelope/">
        > > <Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing">
        > > <wsa:To soap:mustUnderstand="1">http://example.org:9090/cddlm/services/portal</wsa:To>
        > > <wsa:MessageID soap:mustUnderstand="1">uuid:9ae9901b-9ff0-4c8f-b569-4a8e6761bd0f-0</wsa:MessageID>
        > > <wsa:Action soap:mustUnderstand="1">GetResourceProperty</wsa:Action>
        > > </Header>
        > > <Body>
        > > <GetResourceProperty
        > > xmlns:getprop_ns="http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd"
        > > xmlns="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd">getprop_ns:ResourceId</GetResourceProperty>
        > > </Body>
        > > </Envelope>
        > >
        > >
        > >
        > > <?xml version="1.0" encoding="UTF-8"?>
        > > <Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/">
        > > <faultcode xmlns:ns1="http://xml.apache.org/axis/"
        > > xmlns="">ns1:Server</faultcode>
        > > <faultstring xmlns="">Server Error</faultstring>
        > > <detail xmlns="">
        > > <stackTrace xmlns:ns2="http://xml.apache.org/axis/"
        > > xmlns="http://xml.apache.org/axis/">Server
        > > Error at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:473)
        > > at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
        > > at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
        > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        > > at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
        > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        > > 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.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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        > > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        > > at java.lang.Thread.run(Thread.java:595) </stackTrace>
        > > <hostname xmlns:ns3="http://xml.apache.org/axis/"
        > > xmlns="http://xml.apache.org/axis/">example.org</hostname>
        > > </detail>
        > > </Fault>
        > >
        > > Disclaimer. The contents of this post do not emply an endorsement of
        > > WSDM, WSRF, WSA or even SOAP.
        > >
        > >
        > >
        > > -----------------------------------------------------------------
        > > This group is a forum for builders of SOAP implementations to discuss implementation and interoperability issues. Please stay on-topic.
        > > Yahoo! Groups Links
        > >
        > >
        > >
        > >
        > >
        > >
        > >
        >
        >
        >
        >
        >
        > -----------------------------------------------------------------
        > This group is a forum for builders of SOAP implementations to discuss implementation and interoperability issues. Please stay on-topic.
        > Yahoo! Groups Links
        >
        >
        >
        >
        >
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.