OK.  Here goes:

This is the wsdl from Axis 1:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://localhost:8080/axis/Greeting.jws"; xmlns:apachesoap="http://xml.apache.org/xml-soap"; 
xmlns:impl="http://calebdev.om.org:8080/axis/Greeting.jws"; xmlns:intf="http://calebdev.om.org:8080/axis/Greeting.jws"; 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->

  <wsdl:message name="greetingResponse">

     <wsdl:part name="greetingReturn" type="xsd:string"/>

  </wsdl:message>

  <wsdl:message name="greetingRequest">

  </wsdl:message>

  <wsdl:portType name="Greeting">

     <wsdl:operation name="greeting">

        <wsdl:input message="impl:greetingRequest" name="greetingRequest"/>

        <wsdl:output message="impl:greetingResponse" name="greetingResponse"/>

     </wsdl:operation>

  </wsdl:portType>

  <wsdl:binding name="GreetingSoapBinding" type="impl:Greeting">

     <wsdlsoap:binding style="rpc" 
transport="http://schemas.xmlsoap.org/soap/http"/>

     <wsdl:operation name="greeting">

        <wsdlsoap:operation soapAction=""/>

        <wsdl:input name="greetingRequest">

           <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="http://DefaultNamespace"; use="encoded"/>

        </wsdl:input>

        <wsdl:output name="greetingResponse">

           <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="http://localhost:8080/axis/Greeting.jws"; use="encoded"/>

        </wsdl:output>

     </wsdl:operation>

  </wsdl:binding>

  <wsdl:service name="GreetingService">

     <wsdl:port binding="impl:GreetingSoapBinding" name="Greeting">

        <wsdlsoap:address location="http://localhost:8080/axis/Greeting.jws"/>

     </wsdl:port>

  </wsdl:service>

</wsdl:definitions>



This is the tcp request: (port numbers have been changed to get tcpmon to work)

POST /axis/Greeting.jws HTTP/1.1
Host: 127.0.0.1:8880
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.1.6
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 445

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


And this is the response:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=29D92B6BE075163CA8617AFEBAA57825; Path=/axis
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 23 Mar 2007 16:29:58 GMT

1d4
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope 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";><soapenv:Body><ns1:greetingResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="http://DefaultNamespace";><greetingReturn xsi:type="xsd:string">Hello</greetingReturn></ns1:greetingResponse></soapenv:Body></soapenv:Envelope>
0





This is the wsdl from Axis2:


<wsdl:definitions xmlns:axis2="http://ws.apache.org/axis2"; xmlns:ns1="http://org.apache.axis2/xsd"; xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:ns0="http://ws.apache.org/axis2/xsd"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; targetNamespace="http://ws.apache.org/axis2";><wsdl:documentation>Greeting</wsdl:documentation><wsdl:types><xs:schema 
xmlns:ns="http://ws.apache.org/axis2/xsd"; attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.apache.org/axis2/xsd";>
<xs:element name="greetingResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="return" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema></wsdl:types><wsdl:message name="greetingMessage" /><wsdl:message name="greetingResponse"><wsdl:part name="part1" element="ns0:greetingResponse" /></wsdl:message><wsdl:portType name="GreetingPortType"><wsdl:operation name="greeting"><wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; message="axis2:greetingMessage" wsaw:Action="urn:greeting" /><wsdl:output message="axis2:greetingResponse" /></wsdl:operation></wsdl:portType><wsdl:binding name="GreetingSOAP11Binding" type="axis2:GreetingPortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http"; style="document" /><wsdl:operation 
name="greeting"><soap:operation soapAction="urn:greeting" style="document" /><wsdl:input><soap:body use="literal" /></wsdl:input><wsdl:output><soap:body use="literal" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="GreetingSOAP12Binding" type="axis2:GreetingPortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http"; style="document" /><wsdl:operation name="greeting"><soap12:operation soapAction="urn:greeting" style="document" /><wsdl:input><soap12:body use="literal" /></wsdl:input><wsdl:output><soap12:body use="literal" 
/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="GreetingHttpBinding" type="axis2:GreetingPortType"><http:binding verb="POST" /><wsdl:operation name="greeting"><http:operation location="greeting" /><wsdl:input><mime:content type="text/xml" /></wsdl:input><wsdl:output><mime:content type="text/xml" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="Greeting"><wsdl:port name="GreetingSOAP11port_http" binding="axis2:GreetingSOAP11Binding"><soap:address location="http://localhost:8080/axis2/services/Greeting"; /></wsdl:port><wsdl:port name="GreetingSOAP12port_http" 
binding="axis2:GreetingSOAP12Binding"><soap12:address location="http://localhost:8080/axis2/services/Greeting"; /></wsdl:port><wsdl:port name="GreetingHttpport1" binding="axis2:GreetingHttpBinding"><http:address location="http://localhost:8080/axis2/rest/Greeting"; /></wsdl:port></wsdl:service></wsdl:definitions>


This is the request:
POST /axis2/services/Greeting HTTP/1.1
Host: 127.0.0.1:8880
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.1.6
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:greeting"
Content-Length: 154

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";><SOAP-ENV:Body/></SOAP-ENV:Envelope>


And this is the response:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 23 Mar 2007 16:29:58 GMT

125
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Header /><soapenv:Body><ns:greetingResponse xmlns:ns="http://ws.apache.org/axis2/xsd";><ns:return>Hello</ns:return></ns:greetingResponse></soapenv:Body></soapenv:Envelope>
0


I hope this tells you something, Amila, or anyone else, because it took me a bit of work to get this.

Thanks for all your continuing ideas and help.


Tim Koop



Amila Suriarachchi wrote:
Basically you have two senarios
PHP Client ----- Axis1 server
PHP Client ----- Axis2 Server

Can you use the tcp mon and tell me the responses you get in each case?
Can you send your two wsdls as well?

--
Amila Suriarachchi,
WSO2 Inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to