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

2068header and encodingspace.

Expand Messages
  • pierpaolo
    Nov 13, 2002
    • 0 Attachment
      Hi to all!
      I'm new in group and i'm new also in soap::lite, so escuse me for any error in my mail(escuse also for my bad english).
      In my work i found a problem that i've not solved with soap::lite man pages.
      I'm going to write a client soap, that call a webservices specified in a wsdl schema.
      I call a method whith a particular parameter. The type of this parameters is defined in particular name-space.
      I would-like know how i can include this name-space in the header of xml.
      the type of my parameter is ns11::ComponentId.
      ns11:ComponentId is defined in "http://my/url".
      if i do:
      $client->encodingspace('ns11');
      in the header of the xml was added a string:
      xmlns:ns11="http://schemas.xmlsoap.org/soap/encoding/,
      Now, the url of xml:ns11 have not to be this, bat http://my/url.
      How can i modify the attribute of xmlns:ns11 in the header of xml?
      Whithout the rigth url the SoapServer reply me the next faultCode:

      <?xml version='1.0' encoding='UTF-8'?>
      <soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:ns5='http://www.themindelectric.com/package/java.rmi/'><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>electric.xml.io.schema.SchemaException: could not find a type with qname http://schemas.xmlsoap.org/soap/encoding/:ComponentID</faultstring><detail><stacktrace>java.rmi.UnmarshalException: electric.xml.io.schema.SchemaException: could not find a type with qname http://schemas.xmlsoap.org/soap/encoding/:ComponentID
              at electric.net.soap.SOAPOperation.readRequest(Unknown Source)
              at electric.net.soap.SOAPMessage.invoke(Unknown Source)
              at electric.net.soap.SOAPMessage.invoke(Unknown Source)
              at electric.net.soap.http.SOAPHTTPHandler.service(Unknown Source)
              at electric.server.http.ServletServer.service(Unknown Source)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
              at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
              at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
              at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
              at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
              at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
              at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
              at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
              at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
              at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
              at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
              at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
              at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
              at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
              at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
              at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
              at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
              at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
              at java.lang.Thread.run(Thread.java:479)
      </stacktrace></detail><tme:exception xmlns:tme='http://www.themindelectric.com/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'><name xsi:type='xsd:string'>java.rmi.UnmarshalException</name><object id='id0' xsi:type='ns5:UnmarshalException'><detailMessage xsi:type='xsd:string'>electric.xml.io.schema.SchemaException: could not find a type with qname http://schemas.xmlsoap.org/soap/encoding/:ComponentID</detailMessage></object></tme:exception></soap:Fault></soap:Body></soap:Envelope>

      I hope my message was readable.

      By.

      /Pp