on 06-11-2007 8:52 PM
We have a 3rd part developed web service that we are trying to consume using netweaver; as a first step, I am trying to use the web services navigator on our Netweaver installation. Whenever I enter the URL of the axis2-provided WSDL into the Netweaver Web Services Navigator, the next screen comes back with:
Cannot download WSDL from http://158.52.83.90:8080/axis2/services/POJO?wsdl: only application/x-www-form-urlencoded is possible as http binding request content type !
I have verified (at the axis2 box) that the Netweaver box is requesting the WSDL, and that the WSDL is being sent. What needs to be done to the WSDL so that Netweaver likes it?
The WSDL reads as:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:axis2="http://frompojo.axis2.whirlpool.com" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns0="http://frompojo.axis2.whirlpool.com/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://frompojo.axis2.whirlpool.com">
<wsdl:documentation>POJO</wsdl:documentation>
<wsdl:types>
<xs:schema xmlns:ns="http://frompojo.axis2.whirlpool.com/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://frompojo.axis2.whirlpool.com/xsd">
<xs:element name="getDope">
<xs:complexType>
<xs:sequence>
<xs:element name="param0" nillable="true" type="xs:string"/>
<xs:element name="param1" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getDopeResponse">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="return" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="getDopeMessage">
<wsdl:part name="part1" element="ns0:getDope"/>
</wsdl:message>
<wsdl:message name="getDopeResponse">
<wsdl:part name="part1" element="ns0:getDopeResponse"/>
</wsdl:message>
<wsdl:portType name="POJOPortType">
<wsdl:operation name="getDope">
<wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="axis2:getDopeMessage" wsaw:Action="urn:getDope"/>
<wsdl:output message="axis2:getDopeResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="POJOSOAP11Binding" type="axis2:POJOPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="getDope">
<soap:operation soapAction="urn:getDope" 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="POJOSOAP12Binding" type="axis2:POJOPortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="getDope">
<soap12:operation soapAction="urn:getDope" 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="POJOHttpBinding" type="axis2:POJOPortType">
<http:binding verb="POST"/>
<wsdl:operation name="getDope">
<http:operation location="getDope"/>
<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="POJO">
<wsdl:port name="POJOSOAP11port_http" binding="axis2:POJOSOAP11Binding">
<soap:address location="http://192.168.37.1:8080/axis2/services/POJO"/>
</wsdl:port>
<wsdl:port name="POJOSOAP12port_http" binding="axis2:POJOSOAP12Binding">
<soap12:address location="http://192.168.37.1:8080/axis2/services/POJO"/>
</wsdl:port>
<wsdl:port name="POJOHttpport" binding="axis2:POJOHttpBinding">
<http:address location="http://192.168.37.1:8080/axis2/services/POJO"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
no luck
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.