I'm a bit fuzzy about whether WSDL2Java is supposed to support overloaded methods. I'm 
trying to generate proxies for a Microsoft .Net web service that has overloaded method 
signatures. In the .Net model, the methods are identified uniquely using the 
"MessageName" property on the WebMethod attribute. However, WSDL2Java generates two 
methods with the exact same function signature, so the code won't build. Has anyone 
else tried this?

The operation WSDL that .Net spits out looks like this:
 <operation name="SearchCatalog">
  <soap:operation 
soapAction="http://www.viewstar.com/webservices/2002/04/SearchCatalogDefaultCatalogSet";
 style="document" />
- <input name="SearchCatalogDefaultCatalogSet">
  <soap:body use="literal" />
  <soap:header d5p1:required="true" 
message="s0:SearchCatalogDefaultCatalogSetSessionTokenHeader" 
part="SessionTokenHeader" use="literal" xmlns:d5p1="http://schemas.xmlsoap.org/wsdl/"; 
/>
  </input>
- <output name="SearchCatalogDefaultCatalogSet">
  <soap:body use="literal" />
  <soap:header d5p1:required="true" 
message="s0:SearchCatalogDefaultCatalogSetSessionTokenHeader" 
part="SessionTokenHeader" use="literal" xmlns:d5p1="http://schemas.xmlsoap.org/wsdl/"; 
/>
  </output>
  </operation>
- <operation name="SearchCatalog">
  <soap:operation 
soapAction="http://www.viewstar.com/webservices/2002/04/SearchCatalog"; 
style="document" />
- <input>
  <soap:body use="literal" />
  <soap:header d5p1:required="true" message="s0:SearchCatalogSessionTokenHeader" 
part="SessionTokenHeader" use="literal" xmlns:d5p1="http://schemas.xmlsoap.org/wsdl/"; 
/>
  </input>
- <output>
  <soap:body use="literal" />
  <soap:header d5p1:required="true" message="s0:SearchCatalogSessionTokenHeader" 
part="SessionTokenHeader" use="literal" xmlns:d5p1="http://schemas.xmlsoap.org/wsdl/"; 
/>
  </output>
  </operation>


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

Reply via email to