Closed glassfishrobot closed 15 years ago
Reported by kore@java.net
kore@java.net said: Created an attachment (id=227) WSDL
jitu@java.net said: I don't think this a JAX-WS bug. Infact delphi is sending rpc/enc messages and JAX-WS doesn't support rpc/enc. Reopen, if you think there is some bug in JAX-WS.
File: Search.wsdl Attached By: kore@java.net
Was assigned to jax-ws-issues
This issue was imported from java.net JIRA JAX_WS-714
Marked as incomplete on Monday, September 28th 2009, 3:54:02 pm
I have created clients from the attached WSDL using Java and Delphi (the Server is in Java).
calling the search() method works from Java, but not from Delphi.
The Problem seem to be missing namespaces in the Delphi requests (e.g. indexName tag):
<?xml version="1.0"?> <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" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:NS2="http://www.upk.de/wsdl/Search.wsdl"><NS1:search xmlns:NS1="http://www.upk.de/wsdl/Search.wsdl"><body href="#1"/></NS1:search><NS2:SearchQueryType id="1" xsi:type="NS2:SearchQueryType"> <string
xsi:type="xsd:string">auto<indexName
xsi:type="xsd:string">namehere<page
xsi:type="xsd:int">110 <sortFields
xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[0]"/><sortOrder
xsi:type="SOAP-ENC:Array"
SOAP-ENC:arrayType="xsd:boolean[0]"/></NS2:SearchQueryType></SOAP-ENV:Body></SOAP-ENV:Envelope>
where Java generates:
<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><ns2:search
xmlns:ns2="http://www.upk.de/wsdl/Search.wsdl">PlugAndFindCLI</ns2:origin>auto</ns2:string>HeilUndSohn</ns2:indexName>1</ns2:page>10</ns2:pageSize>false</ns2:allValuesClassFeatures>ID</ns2:itemFeature>false</ns2:itemClassFeatures>true</ns2:produceBestFragments></ns2:search></S:Body></S:Envelope>
I'm not quite sure whether this is a JAX-WS-bug. But at least some sort of parametrization for JAX-WS generated WebServices would be nice to ignore missing namespaces.
Environment
Operating System: All Platform: All
Affected Versions
[2.1]