locked
Could not create proxy for wcf service from Java Client RRS feed

  • Question

  • I have created wcf service and I could access same with .net client.

    There will be java client accessing the service.

    Other team used axis tool to generate proxy from java client and could not generate proxy.

    They are getting error as "<port binding=”..”> needs to be qualified."

    I would appreciate help for resolving this issue.

     

    Thanks and Regards,

    Santosh

    Tuesday, April 29, 2008 6:18 PM

Answers

  • There were namespace issues and which was causing wsdl to get genatated

    as service.svc?wsdl=wsdl0 and service.svc?wsdl=wsdl1.

     

    I resolved the namespace issues by adding namespace attribute for every data contract as well as message header, body and added bindingnamespace attribute in web service end point.

     

    This generated only one wsdl file with contract and type definition and java client could generate proxy for same.

    Wednesday, April 30, 2008 9:00 PM

All replies

  • What binding are you using?  You might try basicHttpBinding if you can.  If that gets you no where, you might post more of your Wsdl here.  It looks like something in the Wsdl isnt understood by the axis tool.  You might look for some forums for that tool and get some guidance from there as well.
    Tuesday, April 29, 2008 6:27 PM
  • I tried using basicHttpBinding but I get same error "There is an undefined port type in wsdl document. Hint : <make sure <binding type=".."> is fully qualified."

     

    Here is the wsdl.

     

    <?xml version="1.0" encoding="utf-8"?>

    <wsdlBig Smileefinitions xmlnsTongue Tiedoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlnsTongue Tiedoapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:i0="http://schemas.test.com/Transcoder/v1.0" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:tns="http://tempuri.org/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlnsTongue Tiedoap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

    <wsdl:import namespace="http://schemas.test.com/Transcoder/v1.0" location="http://sea5134:50569/Transcoderv1_0.svc?wsdl" />

    <wsdl:types />

    <wsdl:binding name="BasicHttpBinding_TranscoderService" type="i0:TranscoderService">

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

    <wsdlSurpriseperation name="GetJobStatus">

    <soapSurpriseperation soapAction="http://schemas.test.com/Transcoder/v1.0/TranscoderService/GetJobStatus" style="document" />

    <wsdl:input name="JobStatusRequestMessage_V001_000">

    <soap:header message="i0:JobStatusRequestMessage_V001_000_Headers" part="_header" use="literal" />

    <soap:body use="literal" />

    </wsdl:input>

    <wsdlSurpriseutput name="JobStatusResponseMessage_V001_000">

    <soap:header message="i0:JobStatusResponseMessage_V001_000_Headers" part="_header" use="literal" />

    <soap:body use="literal" />

    </wsdlSurpriseutput>

    </wsdlSurpriseperation>

    <wsdlSurpriseperation name="TranscodeFile">

    <soapSurpriseperation soapAction="http://schemas.test.com/Transcoder/v1.0/TranscoderService/TranscodeFile" style="document" />

    <wsdl:input name="TranscodeFileRequestMessage_V001_000">

    <soap:header message="i0:TranscodeFileRequestMessage_V001_000_Headers" part="_header" use="literal" />

    <soap:body use="literal" />

    </wsdl:input>

    <wsdlSurpriseutput name="TranscodeFileResponseMessage_V001_000">

    <soap:header message="i0:TranscodeFileResponseMessage_V001_000_Headers" part="_header" use="literal" />

    <soap:body use="literal" />

    </wsdlSurpriseutput>

    </wsdlSurpriseperation>

    <wsdlSurpriseperation name="TranscodeJobItems">

    <soapSurpriseperation soapAction="http://schemas.test.com/Transcoder/v1.0/TranscoderService/TranscodeJobItems" style="document" />

    <wsdl:input name="TranscodeJobItemsRequestMessage_V001_000">

    <soap:header message="i0:TranscodeJobItemsRequestMessage_V001_000_Headers" part="_header" use="literal" />

    <soap:body use="literal" />

    </wsdl:input>

    <wsdlSurpriseutput name="TranscodeJobItemsResponseMessage_V001_000">

    <soap:header message="i0:TranscodeJobItemsResponseMessage_V001_000_Headers" part="_header" use="literal" />

    <soap:body use="literal" />

    </wsdlSurpriseutput>

    </wsdlSurpriseperation>

    <wsdlSurpriseperation name="TranscodeJob">

    <soapSurpriseperation soapAction="http://schemas.test.com/Transcoder/v1.0/TranscoderService/TranscodeJob" style="document" />

    <wsdl:input name="TranscodeJobRequestMessage_V001_000">

    <soap:header message="i0:TranscodeJobRequestMessage_V001_000_Headers" part="_header" use="literal" />

    <soap:body use="literal" />

    </wsdl:input>

    <wsdlSurpriseutput name="TranscodeJobResponseMessage_V001_000">

    <soap:header message="i0:TranscodeJobResponseMessage_V001_000_Headers" part="_header" use="literal" />

    <soap:body use="literal" />

    </wsdlSurpriseutput>

    </wsdlSurpriseperation>

    <wsdlSurpriseperation name="GetAvaliableFormats">

    <soapSurpriseperation soapAction="http://schemas.test.com/Transcoder/v1.0/TranscoderService/GetAvaliableFormats" style="document" />

    <wsdl:input>

    <soap:body use="literal" />

    </wsdl:input>

    <wsdlSurpriseutput>

    <soap:body use="literal" />

    </wsdlSurpriseutput>

    </wsdlSurpriseperation>

    <wsdlSurpriseperation name="GetAvaliableFilters">

    <soapSurpriseperation soapAction="http://schemas.test.com/Transcoder/v1.0/TranscoderService/GetAvaliableFilters" style="document" />

    <wsdl:input>

    <soap:body use="literal" />

    </wsdl:input>

    <wsdlSurpriseutput>

    <soap:body use="literal" />

    </wsdlSurpriseutput>

    </wsdlSurpriseperation>

    </wsdl:binding>

    </wsdlBig Smileefinitions>

     

    Tuesday, April 29, 2008 9:10 PM
  • There were namespace issues and which was causing wsdl to get genatated

    as service.svc?wsdl=wsdl0 and service.svc?wsdl=wsdl1.

     

    I resolved the namespace issues by adding namespace attribute for every data contract as well as message header, body and added bindingnamespace attribute in web service end point.

     

    This generated only one wsdl file with contract and type definition and java client could generate proxy for same.

    Wednesday, April 30, 2008 9:00 PM