Generating Proxy class from WSDL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • devikiran
    New Member
    • Aug 2007
    • 3

    Generating Proxy class from WSDL

    Client has provided me a WSDL file generated using BPEL v10.1.3.3.0. When i try to generate the proxy class in visual studio .net 2003 I am getting the following error.

    Reading WSDL from: C:\wsdl\Custome rcheck_rs.wsdl
    Unable to generate source files from contract:
    The document was understood, but it could not be processed.
    - The WSDL document contains links that could not be resolved.
    - There is an error in XML document (9, 10).
    - A schema with the namespace '' has already been added.

    I am stuck. It is really urgent. Can any one please help.

    Thanks in advance

    Regards
    kiran
  • Divya08
    New Member
    • Aug 2007
    • 9

    #2
    Do you have the webservice class with you?
    are u trying to generate a proxy class with .net cmd prompt?

    Comment

    • devikiran
      New Member
      • Aug 2007
      • 3

      #3
      Originally posted by Divya08
      Do you have the webservice class with you?
      are u trying to generate a proxy class with .net cmd prompt?
      I have wsdl file with me. Using wsdl.exe utility i am trying to generate the proxy class.

      Comment

      • Divya08
        New Member
        • Aug 2007
        • 9

        #4
        wsdl.exe /namespace:<Name space required> /out:<output file name> /appsettingurlke y:<url key> http://localhost/AdminServices/File.asmx?wsdl


        "namespace" name is required if the webservice is present in same application root
        "appsettingurlk ey" is optional if u r trying to access from a appsettingkey in web.config

        Hope this would help you..

        Comment

        • devikiran
          New Member
          • Aug 2007
          • 3

          #5
          I have tried with wsdl.exe but it is throwing the same error what i have told in the original message. It seems .net 2003 do not understand the tags given in the wsdl. I am not that familiar with wsdl. So if can tell me what need to be changed it would be good. following is my wsdl

          <?xml version = '1.0' encoding = 'UTF-8'?>
          <definitions targetNamespace ="http://www.phones4u.co .uk/CustomerCheck/CustomerCheckco re" xmlns="http://schemas.xmlsoap .org/wsdl/" xmlns:tns="http ://www.phones4u.co .uk/CustomerCheck/CustomerCheckco re" xmlns:ws="http://www.example.com/webservice" xmlns:http="htt p://schemas.xmlsoap .org/wsdl/http/" xmlns:plt="http ://schemas.xmlsoap .org/ws/2003/05/partner-link/" xmlns:esb="http ://www.oracle.com/esb/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/" xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/" xmlns:import="h ttp://www.phones4u.co .uk/CustomerCheck/CustomerCheckco re">
          <import namespace="http ://www.phones4u.co .uk/CustomerCheck/CustomerCheckco re" location="Custo merCheck.wsdl"/>
          <binding name="__soap_Cu stomerCheck_RS_ CustomerCheck" type="tns:Custo merCheck">
          <soap:binding xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/" style="document " transport="http ://schemas.xmlsoap .org/soap/http"/>
          <operation name="process">
          <soap:operati on xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/" style="document " soapAction="pro cess"/>
          <input>
          <soap:body xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/" use="literal"/>
          </input>
          <output>
          <soap:body xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/" use="literal"/>
          </output>
          </operation>
          </binding>
          <binding name="__esb_Cus tomerCheck_RS_C ustomerCheck" type="tns:Custo merCheck">
          <esb:binding/>
          <operation name="process">
          <esb:operatio n event-name="CustomerC heck.CustomerCh eckCore.Custome rCheck_RS.proce ss"/>
          <input/>
          <output/>
          </operation>
          </binding>
          <service name="CustomerC heckService">
          <port name="__soap_Cu stomerCheck_RS_ CustomerCheck" binding="tns:__ soap_CustomerCh eck_RS_Customer Check">
          <soap:address xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/" location="http://localhost:8888/event/CustomerCheck/CustomerCheckCo re/CustomerCheck_R S"/>
          </port>
          <port name="__esb_Cus tomerCheck_RS_C ustomerCheck" binding="tns:__ esb_CustomerChe ck_RS_CustomerC heck">
          </port>
          </service>
          <plt:partnerLin kType name="CustomerC heckLT">
          <plt:role name="CustomerC heckProvider">
          <plt:portType name="tns:Custo merCheck"/>
          </plt:role>
          </plt:partnerLink Type>
          </definitions>

          Comment

          Working...