jax-ws clients and jboss
posted 17 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hi,
I have a struts application running on jboss3.2.1. I created web service clients for a 3rd party 'document/literal' wsdl using wsimport(jdk1.6 upgrade5). Whenever I try to use the client, I don't get any response from the web service.
The wsdl:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl
efinitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://images.atlasmd.com:8080/WSSpring/axis/AtlasSearch" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://images.atlasmd.com:8080/WSSpring/axis/AtlasSearch" xmlns:intf="http://images.atlasmd.com:8080/WSSpring/axis/AtlasSearch" xmlns:tns1="urn:AssetBean.beans.isearch.atlasmd.com" name="atlas" targetNamespace="http://images.atlasmd.com:8080/WSSpring/axis/AtlasSearch">
<wsdl:types>
<xsd:schema targetNamespace="urn:AssetBean.beans.isearch.atlasmd.com" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://images.atlasmd.com:8080/WSSpring/axis/AtlasSearch"/>
<xsd:element name="doSearch">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="connex" type="xsd:string"/>
<xsd:element name="userId" type="xsd:string"/>
<xsd:element name="authId" type="xsd:string"/>
<xsd:element name="searchBy" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="AssetBean">
<xsd:sequence>
<element name="assetId" type="xsd:int"/>
<element name="assetImageData" nillable="true" type="xsd:base64Binary"/>
<element name="assetImageID" type="xsd:int"/>
<element name="assetKeyword" nillable="true" type="xsd:string"/>
<element name="assetTitle" nillable="true" type="xsd:string"/>
<element name="extendFieldAName" nillable="true" type="xsd:string"/>
<element name="extendFieldAValue" nillable="true" type="xsd:string"/>
<element name="extendFieldBName" nillable="true" type="xsd:string"/>
<element name="extendFieldBValue" nillable="true" type="xsd:string"/>
<element name="extendFieldCName" nillable="true" type="xsd:string"/>
<element name="extendFieldCValue" nillable="true" type="xsd:string"/>
<element name="extendFieldDName" nillable="true" type="xsd:string"/>
<element name="extendFieldDValue" nillable="true" type="xsd:string"/>
<element name="extendFieldEName" nillable="true" type="xsd:string"/>
<element name="extendFieldEValue" nillable="true" type="xsd:string"/>
<element name="extendFieldFName" nillable="true" type="xsd:string"/>
<element name="extendFieldFValue" nillable="true" type="xsd:string"/>
<element name="fileSize" type="xsd:long"/>
<element name="tempField" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="doSearchResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="out" type="tns1:AssetBean" minOccurs ="1" maxOccurs = "unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="doSearchRequest">
<wsdl
art element="tns1
oSearch" name="parameters"/>
</wsdl:message>
<wsdl:message name="doSearchResponse">
<wsdl
art element="tns1
oSearchResponse" name="parameters"/>
</wsdl:message>
<wsdl
ortType name="AtlasSearchEndpoint">
<wsdl
peration name="doSearch">
<wsdl:input message="tns
oSearchRequest"/>
<wsdl
utput message="tns
oSearchResponse"/>
</wsdl
peration>
</wsdl
ortType>
<wsdl:binding name="AtlasSearchSoapBinding" type="impl:AtlasSearchEndpoint">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl
peration name="doSearch">
<soap
peration soapAction=""/>
<wsdl:input name="doSearchRequest">
<soap:body use="literal"/>
</wsdl:input>
<wsdl
utput name="doSearchResponse">
<soap:body use="literal"/>
</wsdl
utput>
</wsdl
peration>
</wsdl:binding>
<wsdl:service name="AtlasSearchEndpointService">
<wsdl
ort binding="impl:AtlasSearchSoapBinding" name="AtlasSearch">
<soap:address location="http://images.atlasmd.com:8080/WSSpring/axis/AtlasSearch"/>
</wsdl
ort>
</wsdl:service>
</wsdl
efinitions>
The client app code:
AtlasSearchEndpoint port = new AtlasSearchEndpointService().getAtlasSearch();
List<AssetBean>l1 = port.doSearch("AZ_11","11","willusethisonAuthor","GENUS:Metanephrops SPECIES:neptunus");
int size = l1.size();
The size is alwys 0.
I have a struts application running on jboss3.2.1. I created web service clients for a 3rd party 'document/literal' wsdl using wsimport(jdk1.6 upgrade5). Whenever I try to use the client, I don't get any response from the web service.
The wsdl:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl
efinitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://images.atlasmd.com:8080/WSSpring/axis/AtlasSearch" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://images.atlasmd.com:8080/WSSpring/axis/AtlasSearch" xmlns:intf="http://images.atlasmd.com:8080/WSSpring/axis/AtlasSearch" xmlns:tns1="urn:AssetBean.beans.isearch.atlasmd.com" name="atlas" targetNamespace="http://images.atlasmd.com:8080/WSSpring/axis/AtlasSearch"><wsdl:types>
<xsd:schema targetNamespace="urn:AssetBean.beans.isearch.atlasmd.com" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://images.atlasmd.com:8080/WSSpring/axis/AtlasSearch"/>
<xsd:element name="doSearch">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="connex" type="xsd:string"/>
<xsd:element name="userId" type="xsd:string"/>
<xsd:element name="authId" type="xsd:string"/>
<xsd:element name="searchBy" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="AssetBean">
<xsd:sequence>
<element name="assetId" type="xsd:int"/>
<element name="assetImageData" nillable="true" type="xsd:base64Binary"/>
<element name="assetImageID" type="xsd:int"/>
<element name="assetKeyword" nillable="true" type="xsd:string"/>
<element name="assetTitle" nillable="true" type="xsd:string"/>
<element name="extendFieldAName" nillable="true" type="xsd:string"/>
<element name="extendFieldAValue" nillable="true" type="xsd:string"/>
<element name="extendFieldBName" nillable="true" type="xsd:string"/>
<element name="extendFieldBValue" nillable="true" type="xsd:string"/>
<element name="extendFieldCName" nillable="true" type="xsd:string"/>
<element name="extendFieldCValue" nillable="true" type="xsd:string"/>
<element name="extendFieldDName" nillable="true" type="xsd:string"/>
<element name="extendFieldDValue" nillable="true" type="xsd:string"/>
<element name="extendFieldEName" nillable="true" type="xsd:string"/>
<element name="extendFieldEValue" nillable="true" type="xsd:string"/>
<element name="extendFieldFName" nillable="true" type="xsd:string"/>
<element name="extendFieldFValue" nillable="true" type="xsd:string"/>
<element name="fileSize" type="xsd:long"/>
<element name="tempField" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="doSearchResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="out" type="tns1:AssetBean" minOccurs ="1" maxOccurs = "unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="doSearchRequest">
<wsdl
art element="tns1
oSearch" name="parameters"/></wsdl:message>
<wsdl:message name="doSearchResponse">
<wsdl
art element="tns1
oSearchResponse" name="parameters"/></wsdl:message>
<wsdl
ortType name="AtlasSearchEndpoint"><wsdl
peration name="doSearch"><wsdl:input message="tns
oSearchRequest"/><wsdl
utput message="tns
oSearchResponse"/></wsdl
peration></wsdl
ortType><wsdl:binding name="AtlasSearchSoapBinding" type="impl:AtlasSearchEndpoint">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl
peration name="doSearch"><soap
peration soapAction=""/><wsdl:input name="doSearchRequest">
<soap:body use="literal"/>
</wsdl:input>
<wsdl
utput name="doSearchResponse"><soap:body use="literal"/>
</wsdl
utput></wsdl
peration></wsdl:binding>
<wsdl:service name="AtlasSearchEndpointService">
<wsdl
ort binding="impl:AtlasSearchSoapBinding" name="AtlasSearch"><soap:address location="http://images.atlasmd.com:8080/WSSpring/axis/AtlasSearch"/>
</wsdl
ort></wsdl:service>
</wsdl
efinitions>The client app code:
AtlasSearchEndpoint port = new AtlasSearchEndpointService().getAtlasSearch();
List<AssetBean>l1 = port.doSearch("AZ_11","11","willusethisonAuthor","GENUS:Metanephrops SPECIES:neptunus");
int size = l1.size();
The size is alwys 0.
| I am not young enough to know everything. - Oscar Wilde This tiny ad thinks it knows more than Oscar: Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |









