You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Augusto Vyhmeister <au...@sixbell.com> on 2002/12/13 19:19:00 UTC

How I can make Serialization under Weblogic

Hello:

I am the following problem:


I send from a java client an invoke(...) to Weblogic ( I am working with WorkShop, and have this response:




      Service Request 
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

              <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"> 
                <SOAP-ENV:Body> 
                  <ns1:sumar SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.openuri.org/"> 
                    <valor1 xsi:type="xsd:int">30</valor1>
                    <valor2 xsi:type="xsd:int">2</valor2>
                  </ns1:sumar>
                </SOAP-ENV:Body>
              </SOAP-ENV:Envelope> 
     
      Warning 
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

            Tag 'valor1' does not match.  
     
      Warning 
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

            Tag 'valor2' does not match.  
     
      Service Response 
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

              <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
                <SOAP-ENV:Body> 
                  <sumarResponse xmlns="http://www.openuri.org/"> 
                    <sumarResult>0</sumarResult>
                  </sumarResponse>
                </SOAP-ENV:Body>
              </SOAP-ENV:Envelope>
           
     


Re: How I can make Serialization under Weblogic

Posted by Scott Nichol <sn...@scottnichol.com>.
There appear to be multiple problems.

The biggest is that the service appears to be written for
document/literal, while Apache SOAP sends rpc/encoded.  To have any
chance of properly sending a request to a doc/lit service, you must use
a nightly build of Apache SOAP, which allows you to send messages that
look like doc/lit.  Another problem is that you are using an old XML
Schema, which suggests to me you are using Apache SOAP 2.2.

Since the service is doc/lit, I highly recommend you use Axis as your
client.  See http://xml.apache.org/axis/.

Scott Nichol

----- Original Message -----
From: "Augusto Vyhmeister" <au...@sixbell.com>
To: <so...@xml.apache.org>
Sent: Friday, December 13, 2002 1:19 PM
Subject: How I can make Serialization under Weblogic


Hello:

I am the following problem:


I send from a java client an invoke(...) to Weblogic ( I am working with
WorkShop, and have this response:




      Service Request
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

              <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
                <SOAP-ENV:Body>
                  <ns1:sumar
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://www.openuri.org/">
                    <valor1 xsi:type="xsd:int">30</valor1>
                    <valor2 xsi:type="xsd:int">2</valor2>
                  </ns1:sumar>
                </SOAP-ENV:Body>
              </SOAP-ENV:Envelope>

      Warning
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

            Tag 'valor1' does not match.

      Warning
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

            Tag 'valor2' does not match.

      Service Response
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

              <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SOAP-ENV:Body>
                  <sumarResponse xmlns="http://www.openuri.org/">
                    <sumarResult>0</sumarResult>
                  </sumarResponse>
                </SOAP-ENV:Body>
              </SOAP-ENV:Envelope>





Re: How I can make Serialization under Weblogic

Posted by Scott Nichol <sn...@scottnichol.com>.
There appear to be multiple problems.

The biggest is that the service appears to be written for
document/literal, while Apache SOAP sends rpc/encoded.  To have any
chance of properly sending a request to a doc/lit service, you must use
a nightly build of Apache SOAP, which allows you to send messages that
look like doc/lit.  Another problem is that you are using an old XML
Schema, which suggests to me you are using Apache SOAP 2.2.

Since the service is doc/lit, I highly recommend you use Axis as your
client.  See http://xml.apache.org/axis/.

Scott Nichol

----- Original Message -----
From: "Augusto Vyhmeister" <au...@sixbell.com>
To: <so...@xml.apache.org>
Sent: Friday, December 13, 2002 1:19 PM
Subject: How I can make Serialization under Weblogic


Hello:

I am the following problem:


I send from a java client an invoke(...) to Weblogic ( I am working with
WorkShop, and have this response:




      Service Request
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

              <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
                <SOAP-ENV:Body>
                  <ns1:sumar
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://www.openuri.org/">
                    <valor1 xsi:type="xsd:int">30</valor1>
                    <valor2 xsi:type="xsd:int">2</valor2>
                  </ns1:sumar>
                </SOAP-ENV:Body>
              </SOAP-ENV:Envelope>

      Warning
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

            Tag 'valor1' does not match.

      Warning
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

            Tag 'valor2' does not match.

      Service Response
      Submitted at Fri Dec 13 13:44:49 VET 2002

      sumar

              <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SOAP-ENV:Body>
                  <sumarResponse xmlns="http://www.openuri.org/">
                    <sumarResult>0</sumarResult>
                  </sumarResponse>
                </SOAP-ENV:Body>
              </SOAP-ENV:Envelope>





--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>