axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kinichiro Inoguchi <ingc1...@yahoo.com>
Subject Re: Perl SOAP::Lite and Apache Axis2 interoperability
Date Tue, 22 Aug 2006 02:24:40 GMT
I traced SOAP request/response by TCPMON 1.0.
As mentioned Anne, SOAP request envelope looks something strange.
But Aleksey's script worked in my environment.

[request]
POST /axis2/services/version HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE, close
Accept: text/xml
Accept: multipart/*
Host: 127.0.0.1:8081
User-Agent: SOAP::Lite/Perl/0.55
Content-Length: 414
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:getVersion"

<?xml version="1.0" encoding="UTF-8"?>
   <SOAP-ENV:Envelope
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
      <SOAP-ENV:Body>
         <getVersion xmlns=""/>
      </SOAP-ENV:Body>
   </SOAP-ENV:Envelope>

[response]
HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=4044F747647CA3099F6239C195724971; Path=/axis2
Content-Type: text/xml;charset=utf-8
Date: Tue, 22 Aug 2006 02:12:36 GMT
Server: Apache-Coyote/1.1
Connection: close

<?xml version='1.0' encoding='utf-8'?>
   <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header />
      <soapenv:Body>
         <ns:getVersionResponse
xmlns:ns="http://axisversion.sample/xsd">
            <ns:return xmlns:ns="http://axisversion.sample/xsd">Hello I
am Axis2 version service , My version is #axisVersion#
#today#</ns:return>
         </ns:getVersionResponse>
      </soapenv:Body>
   </soapenv:Envelope>

--- Anne Thomas Manes <atmanes@gmail.com> wrote:

> Your SOAP envelope has specified the wrong namespace. It should be:
> "http://schemas.xmlsoap.org/soap/envelope/".
> 
> Your SOAP message specifies:
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> 
> That's the namespace for the SOAP extension for WSDL.
> 
> You'll have to check with the Perl folks to figure out how to fix it.
> 
> Anne
> 
> On 8/21/06, Kinichiro Inoguchi <ingc1968@yahoo.com> wrote:
> > Aleksey,
> >
> > I'm using Active Perl 5.6 within Windows XP.
> > And SOAP::Lite version is 1.47. (I checked Lite.pm file.)
> >
> > And I'm using Axis2 nightly build war distribution
> > with JDK1.4.2 and tomcat5.0.28.
> >
> > I hope this info helps you.
> >
> > Regards,
> > kinichiro
> >
> > --- Aleksey Serba <aserba@gmail.com> wrote:
> >
> > > Kinichiro,
> > >
> > > > Your script worked in my environment,
> > > > and I could see result.
> > > > $VAR1 = 'Hello I am Axis2 version service , My version is
> > > #axisVersion#
> > > > #today#';
> > >
> > > Hmm, strange.. Thus the problem is in environment.
> > > What version of SOAP::Lite module and axis2 dist do you use?
> > >
> > > Anyway, this is a good info for me - i'll dig into different
> > > versions.
> > >
> > > Thanks
> > >
> > > Aleksey
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message