www.webdeveloper.com
Results 1 to 7 of 7

Thread: SOAP, WSDL Response Values?

  1. #1
    Join Date
    Jan 2006
    Location
    Gloucester, MA
    Posts
    148

    SOAP, WSDL Response Values?

    I have the following in a WSDL file. I am using this WSDL file to gain access to records. Using the AdvancedSearch Method I can supply the data and obtain a result. However, the result is just one long string of all the fields pertaining to the record. Am I missing something or should I be able to access each field individually to parse and extract the fields from each record?

    Code:
    - <s:element name="AdvancedSearch">
    - <s:complexType>
    - <s:sequence>
      <s:element minOccurs="0" maxOccurs="1" name="strStatus" type="s:string" /> 
      <s:element minOccurs="0" maxOccurs="1" name="strCategory" type="s:string" /> 
      <s:element minOccurs="0" maxOccurs="1" name="strDirector" type="s:string" /> 
      <s:element minOccurs="0" maxOccurs="1" name="strApplication" type="s:string" /> 
      <s:element minOccurs="0" maxOccurs="1" name="strTimeZone" type="s:string" /> 
      <s:element minOccurs="0" maxOccurs="1" name="strDateFrom" type="s:string" /> 
      <s:element minOccurs="0" maxOccurs="1" name="strDateTo" type="s:string" /> 
      </s:sequence>
      </s:complexType>
      </s:element>
    - <s:element name="AdvancedSearchResponse">
    - <s:complexType>
    - <s:sequence>
    - <s:element minOccurs="0" maxOccurs="1" name="AdvancedSearchResult">
    - <s:complexType>
    - <s:sequence>
      <s:element ref="s:schema" /> 
      <s:any /> 
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:sequence>
      </s:complexType>
      </s:element>
    Robert D. Cluett
    Systems Engineer & Web Developer
    Verizon Communications

  2. #2
    Join Date
    Jan 2006
    Location
    Gloucester, MA
    Posts
    148
    I guess no SOAP experts lurk this site?
    Robert D. Cluett
    Systems Engineer & Web Developer
    Verizon Communications

  3. #3
    Join Date
    Nov 2002
    Location
    England
    Posts
    693
    It all depends on the underlying implementation. WSDL only describes the methods in a Web Service, it does not deal with implementation. What language is your Web Service written in?

    Is the AdvancedSearch method overloaded?

  4. #4
    Join Date
    Jan 2006
    Location
    Gloucester, MA
    Posts
    148
    Quote Originally Posted by Scriptage View Post
    It all depends on the underlying implementation. WSDL only describes the methods in a Web Service, it does not deal with implementation. What language is your Web Service written in?

    Is the AdvancedSearch method overloaded?
    Oh Boy, I do not know the answer to either of those questions
    Robert D. Cluett
    Systems Engineer & Web Developer
    Verizon Communications

  5. #5
    Join Date
    Nov 2002
    Location
    England
    Posts
    693
    O.K. How are you consuming the Web Service?

  6. #6
    Join Date
    Jan 2006
    Location
    Gloucester, MA
    Posts
    148
    Quote Originally Posted by Scriptage View Post
    O.K. How are you consuming the Web Service?
    Thank you for the response. the SOAP client is written in PHP. I was able to obtain results using the AdvancedSearch Method but it's all one giant string. As a subscriber to this data a string of returned results means little. My thinking was all this should be returned as an array so I can pick through it. I called the API developer but he's not really responding to me. I kind of was hoping I could get my head around it a little before I talk to him. Do you agree that if you are going to return a number of records that it should not be returned as a string and rather an array? Maybe I am missing something.
    Robert D. Cluett
    Systems Engineer & Web Developer
    Verizon Communications

  7. #7
    Join Date
    Nov 2002
    Location
    England
    Posts
    693
    It really does depend on the person implementing the web service. Have you got a link to the API documentation? It is possible overload methods so it may be the case that you can pass additional parameters to the method to get it to return the data in a different format; failing that you will need to write an algorithm to parse the data.

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