DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: sending complex type problem (soap)

  1. #1
    Join Date
    Jul 2008
    Posts
    4

    sending complex type problem (soap)

    Hi,
    i have got a problem with a webservice (jira). i`m working with the ms soap toolkit 3.0. Sending and receiving simple types is no problem (they will be mapped to simple types in vb6) also receiving complex types is no problem (they will be mapped to a xmlNodelist).
    But i need to send a complex type and i dont know how to do it. I`ve got the wsdl file of the webservice where every type is defined but i dont know exactly how to build this complex type out of the wsdl-definition.
    So far i see 2 possible ways for this:
    a.)
    I define a class somewhere for this type, this would be the vs2005 approach. (I dont know which elements in vb6 are equivalent to which elements in the wsdl-definition)
    b.)
    I build a raw xml soap message. (I dont know how the message should look like, especially the complex-type parameter)

    I tried both ways and different variations but i always get an error with the complex-type parameter.
    This is my complex type and operation i want to use (copied out of http://jira.atlassian.com/rpc/soap/j...ervice-v2?wsdl)

    Code:
    <complexType name="RemoteFieldValue">
      <sequence>
        <element name="id" nillable="true" type="xsd:string" /> 
        <element name="values" nillable="true" type="impl:ArrayOf_xsd_string" /> 
      </sequence>
    </complexType>
    ...
    <wsdl:message name="progressWorkflowActionRequest">
      <wsdl:part name="in0" type="xsd:string" /> 
      <wsdl:part name="in1" type="xsd:string" /> 
      <wsdl:part name="in2" type="xsd:string" /> 
      <wsdl:part name="in3" type="impl:ArrayOf_tns1_RemoteFieldValue" /> 
    </wsdl:message>
    ...
    <wsdl:operation name="progressWorkflowAction" parameterOrder="in0 in1 in2 in3">
      <wsdl:input message="impl:progressWorkflowActionRequest" name="progressWorkflowActionRequest" /> 
      <wsdl:output message="impl:progressWorkflowActionResponse" name="progressWorkflowActionResponse" /> 
      <wsdl:fault message="impl:RemoteException" name="RemoteException" /> 
    </wsdl:operation>
    ...
    <wsdl:operation name="progressWorkflowAction">
      <wsdlsoap:operation soapAction="" /> 
      <wsdl:input name="progressWorkflowActionRequest">
      <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://soap.rpc.jira.atlassian.com" use="encoded" /> 
      </wsdl:input>
      <wsdl:output name="progressWorkflowActionResponse">
      <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/rpc/soap/jirasoapservice-v2" use="encoded" /> 
      </wsdl:output>
      <wsdl:fault name="RemoteException">
      <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="RemoteException" namespace="http://localhost:8080/rpc/soap/jirasoapservice-v2" use="encoded" /> 
      </wsdl:fault>
      </wsdl:operation>
      <wsdl:operation name="getIssueById">
      <wsdlsoap:operation soapAction="" /> 
      <wsdl:input name="getIssueByIdRequest">
      <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://soap.rpc.jira.atlassian.com" use="encoded" /> 
      </wsdl:input>
      <wsdl:output name="getIssueByIdResponse">
      <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/rpc/soap/jirasoapservice-v2" use="encoded" /> 
      </wsdl:output>
      <wsdl:fault name="RemotePermissionException">
      <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="RemotePermissionException" namespace="http://localhost:8080/rpc/soap/jirasoapservice-v2" use="encoded" /> 
      </wsdl:fault>
      <wsdl:fault name="RemoteAuthenticationException">
      <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="RemoteAuthenticationException" namespace="http://localhost:8080/rpc/soap/jirasoapservice-v2" use="encoded" /> 
      </wsdl:fault>
      <wsdl:fault name="RemoteException">
      <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="RemoteException" namespace="http://localhost:8080/rpc/soap/jirasoapservice-v2" use="encoded" /> 
      </wsdl:fault>
    </wsdl:operation>
    ...
    So how to build a message or a class out of this ?

    In vs 2005 this is no problem because the environment is receiving the wsdl file and it builds classes for the complex types so you can use it as normal objects.

    Does anybody got an idea how to solve this? Or does anybody know where to ask this else? If u need more details just ask.

    Thank you.

  2. #2
    Join Date
    Dec 2003
    Location
    San Diego
    Posts
    202
    Hopefully these SOAP resources will help with your complex types. It includes some VB related info as well.

    http://www.pocketsoap.com/pocketsoap...plex_types.htm

    http://www.aspfree.com/c/a/VB.NET/Ca...-with-SOAP-30/

    http://www.devarticles.com/c/a/ASP/A...g-ASP-and-VB6/

    Good luck,
    Michael Sanchez
    Managing Technical Editor
    Forum Moderator
    FreeVBCode.com

  3. #3
    Join Date
    Feb 2009
    Posts
    1

    sending complex types via soap

    Have you found how to send complex types with MSSOAP 3.0. I have the same problem since I have to send xml string when I call web service.


    Thank you in advance for your reply,
    Maca

Similar Threads

  1. Replies: 2
    Last Post: 04-18-2007, 02:34 AM
  2. Replies: 9
    Last Post: 01-30-2007, 08:26 AM
  3. Sending Email on Click event- Focus Problem
    By dooey in forum VB Classic
    Replies: 3
    Last Post: 12-19-2006, 11:47 PM
  4. Complex class won't compile
    By Mcody2 in forum Java
    Replies: 7
    Last Post: 12-02-2005, 12:29 AM
  5. Complex number
    By burung in forum Java
    Replies: 3
    Last Post: 08-01-2005, 05:59 AM

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center