MIME attachment from a java based webservice -- Access using C# .NET client

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wsnet9
    New Member
    • Sep 2011
    • 1

    #1

    MIME attachment from a java based webservice -- Access using C# .NET client

    Hi,

    I am trying to access java based webservice which has an attachment and I have to access it using C# .NET client

    I tried using WSE 3.0 to generate client proxy but failed.

    I have been given an WSDL

    In the message section of WSDL
    One of the message has attachment type as hexbinary in request / response

    here is the syntax in WSDL
    Code:
    <wsdl:part name="attachment" type="xs:hexBinary"/>
    and in the binding section of wsdl i have
    type as mime:MultipartR elated
    Code:
    <wsdl:output>
      <mime:multipartRelated>
        <mime:part>
          <soap:body parts="response" use="literal"/>
        </mime:part>
        <mime:part>
          <mime:content part="attachment" type="*/*"/>
        </mime:part>
      </mime:multipartRelated>
    </wsdl:output>
    Please help to generate the client proxy and able to access the attachement and document from the webservice.

    Appreciate your help

    Thanks
    WSNET
    Last edited by Frinavale; Sep 17 '11, 10:17 PM. Reason: Added code tags.
Working...