|
Hi Sal, I'm not saying I didn't
get any responses for my posts on this mailing list… And I sincerely apologize
if I gave the wrong impression. I appreciate all the help
you provided me. I was simply referring to
the current issue I had with creating a simple client a MUSE based service I created. I am new to MUSE, and since
I am taking my first steps with it I encounter issues I didn't know how to
resolve like the URI issue on the Action element of the SOAP header. I simply looked into client
sample code which is in the CVS repository of the muse project and modified it
to work with my service. There is neither
indication specifying the action is a URI nor any specifications of its
structure. And I didn't remember that from the WS-Addressing specs. Jose noticed the problem I
had with the SOAP header and pointed me to it. Asaf Lahav VP R&D, Prima Grid LTD. Cellular:
972-54-4717955 Phone:
972-3-6540255 Fax:
972-3-6540254 From: Campana
Jr., Salvatore J [mailto:[EMAIL PROTECTED] Asaf, I'm sorry you feel you
haven't gotten answers to your questions. I feel I have answered quite a
few of them in the past... Lets address this
one.... You have an operation
called 'create' and are trying to invoke...you cannot seem to figure out why
you are having issues.... The WS-Addressing spec
defined Action to be a URI, yet you've simply put in your Action header
"Create"...This is causing parsing issues.. That is why the stack
trace points out a MalformedURIException...Also viewing the stack I can see it
was looking at Action and that it was an AttributedURI...they were clues to
you. As for the body of your
request. Its wrong. You wsdl and schema say something different
than what you are providing. -Sal From: Asaf
Lahav [mailto:[EMAIL PROTECTED] Hi all, I have been trying to some help for
problems I'm having with muse from the MUSE user's mailing list with no
success. So I'm now trying my luck at the
developer's mailing list. As you can see from the
attached WSDL file, this a MUSE service which has an action by the name
'create'. I have no idea what I'm
doing wrong. A client I developed is
sending a soap message which I believe is a valid message: This is the soap message
I'm sending to the service: <Envelope
xmlns="http://schemas.xmlsoap.org/soap/envelope/"> <Header>
<add:To
xmlns:add="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost:8080/muse/services/ServicesAdmin</add:To>
<add:Action
xmlns:add="http://schemas.xmlsoap.org/ws/2004/08/addressing">Create</add:Action>
<svr:ResourceIdentifier xmlns:svr="http://www.primagrid.com/test/one/testservice"
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">1</svr:ResourceIdentifier> </Header> <Body>
<xml-fragment xmlns=""/> </Body> </Envelope> And AFAIK that’s a
valid SOAP message. Upon invocation I'm
getting the following exception: SOAP request failed with
HTTP status: 500 Internal Server Error <xml-fragment
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <faultcode
xmlns:ns1="http://xml.apache.org/axis/">ns1:Server</faultcode>
<faultstring>Server Error</faultstring> <detail>
<ns2:stackTrace xmlns:ns2="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.Http11AprProcessor.process(Http11AprProcessor.java:831)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)
at java.lang.Thread.run(Unknown Source)</ns2:stackTrace>
<ns3:hostname
xmlns:ns3="http://xml.apache.org/axis/">LAP-ASAF</ns3:hostname> </detail> </xml-fragment> And the
tomcat log indicates an exception stack trace: org.apache.axis.types.URI$MalformedURIException:
No scheme found in URI.
at org.apache.axis.types.URI.initialize(URI.java:653)
at org.apache.axis.types.URI.<init>(URI.java:311)
at org.apache.axis.types.URI.<init>(URI.java:272)
at org.apache.axis.message.addressing.AttributedURI.<init>(AttributedURI.java:81)
at org.apache.axis.message.addressing.Action.<init>(Action.java:54)
at
org.apache.axis.message.addressing.AddressingHeaders.<init>(AddressingHeaders.java:200)
at org.apache.ws.addressing.handler.ServerSideAddressingHandler.handleRequest(ServerSideAddressingHandler.java:87)
at
org.apache.axis.handlers.HandlerChainImpl.handleRequest(HandlerChainImpl.java:143)
at org.apache.axis.handlers.JAXRPCHandler.invoke(JAXRPCHandler.java:51)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
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.Http11AprProcessor.process(Http11AprProcessor.java:831)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1196)
at java.lang.Thread.run(Unknown Source) I'm stuck with this for a while, and I
would REALLY appreciate your help. Asaf Lahav VP R&D, Prima Grid LTD. Cellular:
972-54-4717955 Phone:
972-3-6540255 Fax:
972-3-6540254 |
