0 Replies Latest reply on Nov 7, 2006 7:15 AM by ecos1

    Flex and soapheader

    ecos1
      Hi !, i'm testing flex software, It's cool, but a I am testing consume a web service trying pass a parameters in the soapheader, and I can't.
      Without puting the header its works.. so, i give you the xml what the web service is waiting for someone have an idea and can give me an advice. Also Thank you very much.

      xml of the web service ( I trying consume menus and before i need past the user and password for header ):
      - <s:complexType name="menus">
      - <s:sequence>
      <s:element minOccurs="0" maxOccurs="1" name="MenuId" type="s:string" />
      <s:element minOccurs="0" maxOccurs="1" name="MenuDesc" type="s:string" />
      </s:sequence>
      </s:complexType>
      <s:element name="InfoUsu" type="tns:InfoUsu" />
      - <s:complexType name="InfoUsu">
      - <s:sequence>
      <s:element minOccurs="0" maxOccurs="1" name="Usuario" type="s:string" />
      <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
      </s:sequence>
      </s:complexType>


      The code in .net ( If you need for help me ):

      <WebMethod(), SoapHeader("InfoUsuario")> _
      Public Function ws_menu() As menus()
      ...bla bla..

      ...
      Public Class InfoUsu
      Inherits SoapHeader

      Public Usuario As String
      Public Password As String
      End Class
      ---

      Thank You.-