help with WebMethod (VB)

Discussion in 'ASP .Net Web Services' started by Jure P, Jun 2, 2005.

  1. Jure P

    Jure P Guest

    can any one please help me to translate part of WebMethod Soap header from
    c# to vb. All translators i found do it wrong:

    I have problem with "return"
    [WebMethod(EnableSession=true,Description="Obtains the Party info of a
    GLN",MessageName="GetPartyByGLN")]

    [return:XmlElementAttribute("aaaParty",Namespace="http://www.aaa.org/")]

    public aaaParty
    GetPartyByGLN([XmlElementAttribute("GetPartyByGLN",Namespace="http://www.aaa
    ..org/")] GetPartyByGLN partyGln)

    {

    }

    thank you, jure
     
    Jure P, Jun 2, 2005
    #1
    1. Advertising

  2. Jure P

    Paul Larson Guest

    Something like...

    <WebMethod(EnableSession:=True, Description:="Obtains the Party info of a
    GLN", MessageName:="GetPartyByGLN")> _
    Public Function GetPartyByGLN() As
    System.xml.serialization.XmlElementAttribute
    Return New System.xml.serialization.XmlElementAttribute("aaaParty")
    End Function
     
    Paul Larson, Jun 3, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Temp
    Replies:
    1
    Views:
    1,101
    Natty Gur
    Aug 11, 2003
  2. sunnyz
    Replies:
    1
    Views:
    2,964
    Kevin Spencer
    Oct 15, 2004
  3. Kevin Spencer

    Strange Exception with WebMethod

    Kevin Spencer, Oct 25, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    426
    Kevin Spencer
    Oct 28, 2004
  4. Franck
    Replies:
    1
    Views:
    486
    Karl Seguin
    Oct 4, 2005
  5. Mauricio Pires

    WebMethod and DataSet parameter - Help me.

    Mauricio Pires, Aug 19, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    178
    Mauricio Pires
    Aug 19, 2005
Loading...

Share This Page