Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Soap without WSDL

    Hi,
    I am relatively new to SOAP and trying to connect to a web service of a
    partner company.
    So far I have failed in the attempts as I have no WSDL file available for
    web service (and due to some compatibility issues they can not produce
    WSDL).

    I have got examples in PHP that are working without WSDL, but I do not know
    how to get the same functionality in either ASP or ASP.NET.

    In php it looks something like this:

    <?php
    require_once "SOAP/Client.php";
    $soapclient = new SOAP_Client("https://CompanySoapServer/service.php ");

    $options = array('namespace' => 'urn:SOAP_CompanyNamespace',
    'curl' => array(CURLOPT_SSL_VERIFYPEER => 0,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_SSLCERT => $sslcert,
    CURLOPT_SSLCERTPASSWD => $sslpass),
    'trace' => 0);

    $var->param1=$param1;
    $var->param2=$param2;
    $p = array(new SOAP_Value('var','',$var));
    $ret = $soapclient->call("CompanyWebMethod",$p,$options);
    ?>

    Any suggestions how to do solve this problem?

    Thanks,
    Sasa .
    Sasa . Guest

  2. Similar Questions and Discussions

    1. SOAP::Lite and .wsdl files
      Hi, I'm struggling with SOAP::Lite and using .wsdl files. Given the configuration shown below, what should be in these sections of the .wsdl...
    2. Using SOAP without WSDL?
      Newbie to SOAP and Flex and I have a small pilot project to access a company's SOAP 1.1 web services. I am given the sample SOAP request/response...
    3. Is wsdl is enough for soap?
      Hi, AIM:I WANT TO IMPLEMENT SOAP IN MY webservice & client. I did: I ve a simple web service that simply returns a dataset.After reading...
    4. soap:fault in WSDL
      Hi all, I'm trying to modify the wsdl automatically genereated by ASP.NET, to include fault tag under operation and binding tags. All worked...
    5. Newbie, got the wsdl soap, now what??
      I wrote a webservice, then I called the WSDL file, and it says the code below is the request, but there are no instructions on how to use it. What...
  3. #2

    Default Re: Soap without WSDL

    Sasa,
    > I am relatively new to SOAP and trying to connect to a web service of a
    > partner company.
    > So far I have failed in the attempts as I have no WSDL file available for
    > web service (and due to some compatibility issues they can not produce
    > WSDL).
    >
    > I have got examples in PHP that are working without WSDL, but I do not
    know
    > how to get the same functionality in either ASP or ASP.NET.
    >
    > In php it looks something like this:
    >
    > <?php
    > require_once "SOAP/Client.php";
    > $soapclient = new SOAP_Client("https://CompanySoapServer/service.php ");
    >
    > $options = array('namespace' => 'urn:SOAP_CompanyNamespace',
    > 'curl' => array(CURLOPT_SSL_VERIFYPEER => 0,
    > CURLOPT_TIMEOUT => 0,
    > CURLOPT_SSLCERT => $sslcert,
    > CURLOPT_SSLCERTPASSWD => $sslpass),
    > 'trace' => 0);
    >
    > $var->param1=$param1;
    > $var->param2=$param2;
    > $p = array(new SOAP_Value('var','',$var));
    > $ret = $soapclient->call("CompanyWebMethod",$p,$options);
    > ?>
    >
    > Any suggestions how to do solve this problem?
    I have no clue about PHP, so I can't tell you what it does.... however, the
    way I'd probably approach this would be to try first and see whats going on
    over the network between the existing client and server (say by using a tool
    such as Simon Fell's TcpTrace [1]). With that, you could figure out a lot
    and maybe either manually create the messages in XML and send them using
    HttpWebRequest, or create your own WSDL describing the service and then
    using wsdl.exe to generate a proxy class from there.

    --
    Tomas Restrepo
    [email]tomasr@mvps.org[/email]


    Tomas Restrepo \(MVP\) Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139