www.webdeveloper.com
Results 1 to 6 of 6

Thread: php nusoap / soapUI request differences

  1. #1
    Join Date
    Aug 2007
    Location
    Oslo
    Posts
    24

    php nusoap / soapUI request differences

    Im trying to make a ws call with nusoap. But I dont get the response I want.

    My request from nusoap looks like this:
    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <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:Header>
       <password>password</password>
       <username>username</username>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
       <getCustomer xmlns="">
          <customerNo xmlns="">120266</customerNo>
       </getCustomer>
    <login xmlns=""/>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    but when im checking soapUI the request is like this:
    Code:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cus="http://customer.wsapi.sbs/">
       <soapenv:Header>
          <cus:login>
             <!--Optional:-->
             <password>password</password>
             <!--Optional:-->
             <username>username</username>
          </cus:login>
       </soapenv:Header>
       <soapenv:Body>
          <cus:getCustomer>
             <customerNo>120266</customerNo>
          </cus:getCustomer>
       </soapenv:Body>
    </soapenv:Envelope>
    The first is "<SOAP-ENV:Envelope" and the second is "<soapenv:Envelope".
    Do the differences have anything to say?
    And if it has something to say; how can I change the nusoap request so it will be similar to the soapUI request?

    thanks

  2. #2
    Join Date
    Sep 2008
    Location
    Tel Aviv, Berlin, L.A.
    Posts
    165
    It's simply that two different approaches use a different terminology. No danger ahead...

  3. #3
    Join Date
    Aug 2007
    Location
    Oslo
    Posts
    24
    thank you!

  4. #4
    Join Date
    Sep 2008
    Location
    Tel Aviv, Berlin, L.A.
    Posts
    165

    soapUI

    YOu're very welcome. By the way, I'd prefer the latter one, soapUI. Also, stuff that is referred to in lower letters is less error-prone.

    Best from the south.

  5. #5
    Join Date
    Aug 2007
    Location
    Oslo
    Posts
    24
    Ok. thanks again.
    By the way, do you know if it is possible to change the nusoap request to the one that soapui use?

  6. #6
    Join Date
    Sep 2008
    Location
    Tel Aviv, Berlin, L.A.
    Posts
    165
    As I said, both approaches have their own terminology, thus you have to make a decision (unless you'd want to re-write nusoap). So, no, there's barely a way to "apply" soapUI syntax to a different library.

    Best from the south.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles