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

    sending complex type problem (soap)

    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:
    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)
    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

    <complexType name="RemoteFieldValue">
        <element name="id" nillable="true" type="xsd:string" /> 
        <element name="values" nillable="true" type="impl:ArrayOf_xsd_string" /> 
    <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: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 name="progressWorkflowAction">
      <wsdlsoap:operation soapAction="" /> 
      <wsdl:input name="progressWorkflowActionRequest">
      <wsdlsoap:body encodingStyle="" namespace="" use="encoded" /> 
      <wsdl:output name="progressWorkflowActionResponse">
      <wsdlsoap:body encodingStyle="" namespace="http://localhost:8080/rpc/soap/jirasoapservice-v2" use="encoded" /> 
      <wsdl:fault name="RemoteException">
      <wsdlsoap:fault encodingStyle="" name="RemoteException" namespace="http://localhost:8080/rpc/soap/jirasoapservice-v2" use="encoded" /> 
      <wsdl:operation name="getIssueById">
      <wsdlsoap:operation soapAction="" /> 
      <wsdl:input name="getIssueByIdRequest">
      <wsdlsoap:body encodingStyle="" namespace="" use="encoded" /> 
      <wsdl:output name="getIssueByIdResponse">
      <wsdlsoap:body encodingStyle="" namespace="http://localhost:8080/rpc/soap/jirasoapservice-v2" use="encoded" /> 
      <wsdl:fault name="RemotePermissionException">
      <wsdlsoap:fault encodingStyle="" name="RemotePermissionException" namespace="http://localhost:8080/rpc/soap/jirasoapservice-v2" use="encoded" /> 
      <wsdl:fault name="RemoteAuthenticationException">
      <wsdlsoap:fault encodingStyle="" name="RemoteAuthenticationException" namespace="http://localhost:8080/rpc/soap/jirasoapservice-v2" use="encoded" /> 
      <wsdl:fault name="RemoteException">
      <wsdlsoap:fault encodingStyle="" name="RemoteException" namespace="http://localhost:8080/rpc/soap/jirasoapservice-v2" use="encoded" /> 
    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
    San Diego
    Hopefully these SOAP resources will help with your complex types. It includes some VB related info as well.

    Good luck,
    Michael Sanchez
    Managing Technical Editor
    Forum Moderator

  3. #3
    Join Date
    Feb 2009

    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,

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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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