[newbie]Calling .net from Java

Discussion in 'ASP .Net Web Services' started by Breeze, Jul 9, 2003.

  1. Breeze

    Breeze Guest

    Hello,
    i'm using Axis for accessing a c# webservice and all works fine.
    Now i must use a much smaller library for accessing the ws from an applet
    and it doesn't work for a minimum difference in the SOAP body:

    AXIS Body:
    <SOAP-ENV:Body>
    <startSecureSystemAccess xmlns="http://www.perinvestire.com/site">
    <Usern>teo</Usern>
    </startSecureSystemAccess>
    </SOAP-ENV:Body>

    Wingfoot's Body:
    <SOAP-ENV:Body>
    <nso:startSecureSystemAccess xmlns:ns0="http://www.perinvestire.com/site">
    <Usern>teo</Usern>
    </ns0:startSecureSystemAccess>
    </SOAP-ENV:Body>

    For what i understood the second xml fragment is correct, but the WS doesn't
    catch the "Usern" parameter.

    The c# web service is as simple as

    [WebMethod]
    public String startSecureSystemAccess(String Usern) {
    return Usern;
    }

    Any idea?

    Best regards,
    Alessio
    Breeze, Jul 9, 2003
    #1
    1. Advertising

  2. wingfoot seems to be broken; it ought to apply the ns0 to Usern .
    or use a default namespace as does AXIS.

    "Breeze" <alessio.spadaro@finserviceDOTcom> wrote in message
    news:8HVOa.3009$...
    > Hello,
    > i'm using Axis for accessing a c# webservice and all works fine.
    > Now i must use a much smaller library for accessing the ws from an applet
    > and it doesn't work for a minimum difference in the SOAP body:
    >
    > AXIS Body:
    > <SOAP-ENV:Body>
    > <startSecureSystemAccess xmlns="http://www.perinvestire.com/site">
    > <Usern>teo</Usern>
    > </startSecureSystemAccess>
    > </SOAP-ENV:Body>
    >
    > Wingfoot's Body:
    > <SOAP-ENV:Body>
    > <nso:startSecureSystemAccess xmlns:ns0="http://www.perinvestire.com/site">
    > <Usern>teo</Usern>
    > </ns0:startSecureSystemAccess>
    > </SOAP-ENV:Body>
    >
    > For what i understood the second xml fragment is correct, but the WS

    doesn't
    > catch the "Usern" parameter.
    >
    > The c# web service is as simple as
    >
    > [WebMethod]
    > public String startSecureSystemAccess(String Usern) {
    > return Usern;
    > }
    >
    > Any idea?
    >
    > Best regards,
    > Alessio
    >
    >
    Dino Chiesa [MSFT], Jul 10, 2003
    #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. Ryan Ternier
    Replies:
    4
    Views:
    3,975
    Cowboy \(Gregory A. Beamer\) [MVP]
    Jul 29, 2004
  2. =?Utf-8?B?TWFydGluIExlZQ==?=

    Calling FormsAuthentication.SignOut() after calling Response.Flush

    =?Utf-8?B?TWFydGluIExlZQ==?=, Sep 28, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    732
    =?Utf-8?B?RXRoZW0gQXp1bg==?=
    Sep 28, 2004
  3. Andreas Lagemann
    Replies:
    8
    Views:
    480
    Mike Wahler
    Jan 10, 2005
  4. Klaus Friese

    c++ calling java calling c++ ...

    Klaus Friese, Aug 12, 2005, in forum: C++
    Replies:
    7
    Views:
    582
    Roland Pibinger
    Aug 15, 2005
  5. pvbemmel-at-xs4all-nl

    java calling rsync calling ssh: io threads blocked

    pvbemmel-at-xs4all-nl, Sep 20, 2010, in forum: Java
    Replies:
    7
    Views:
    1,378
    pvbemmel-at-xs4all-nl
    Oct 29, 2010
Loading...

Share This Page