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

Re: PocketSoap call Apache Web Service

Expand Messages
  • david_meng99
    ... I ... 'http://schemas.xmlsoap.org/soap/encoding/'. ... types, ... HI Simon, I did the type mapping for my object: TrialRes in the
    Message 1 of 3 , Apr 24, 2003
    • 0 Attachment
      --- In soapbuilders@yahoogroups.com, "Simon Fell" <ws@z...> wrote:
      > --- In soapbuilders@yahoogroups.com, "david_meng99"
      > <david_meng99@y...> wrote:
      > > Hi,
      > >
      > > I would like to call an Apache Web Service from eVB environment,
      I
      > > used PocketSoap to do that, below are the request and response
      > > messages:
      > >
      > > Request:
      > >
      > > <S:Envelope
      > > S:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      > > xmlns:Enc="http://schemas.xmlsoap.org/soap/encoding/"
      > > xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
      > > xmlns:XS="http://www.w3.org/2001/XMLSchema"
      > > xmlns:XI="http://www.w3.org/2001/XMLSchema-instance"
      > > xmlns:a="urn:clubmed-Hello">
      > > <S:Body><a:update><TrialRes href="#a41d4"/>
      > > </a:update>
      > > <TrialRes Enc:root="0" id="a41d4"><respName
      > > XI:type="XS:string">Chris</respName>
      > > <questions XI:type="XS:short">1</questions>
      > > <answers XI:type="XS:short">1</answers>
      > > </TrialRes>
      > > </S:Body></S:Envelope>
      > >
      > >
      > > Response:
      > >
      > > <?xml version='1.0' encoding='UTF-8'?>
      > >
      > > <SOAP-ENV:Envelope xmlns:SOAP-
      > > ENV="http://schemas.xmlsoap.org/soap/envelope/"
      > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      > > xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      > > <SOAP-ENV:Body>
      > > <SOAP-ENV:Fault>
      > > <faultcode>SOAP-ENV:Client</faultcode>
      > > <faultstring>No Deserializer found to deserialize a
      > > ':TrialRes' using encoding style
      > >
      'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
      > > <faultactor>/soap/servlet/rpcrouter</faultactor>
      > > </SOAP-ENV:Fault>
      > > </SOAP-ENV:Body>
      > > </SOAP-ENV:Envelope>
      > >
      > > I never saw an XML message like href="#a41d4", can anybody tell me
      > > if this is an problem, how to get around with it, thanks.
      > >
      > > David
      >
      > Its a valid request, see section 5 of the SOAP 1.1 spec.
      >
      > You need to configure apache to know what elements map to what
      types,
      > see the interop section in the apache soap docs.
      >
      > Cheers
      > Simon
      > www.pocketsoap.com


      HI Simon,

      I did the type mapping for my object: TrialRes in the soap deployment
      descriptor file, but Apache soap keep complains:

      <faultstring>No Deserializer found to deserialize a
      ':TrialRes' using encoding style
      'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>


      What I have done wrong? can you please furthur elaborate this, thx.

      David Meng
    Your message has been successfully submitted and would be delivered to recipients shortly.