Help with Web Services

Discussion in 'Java' started by Wendy S, Jul 26, 2003.

  1. Wendy S

    Wendy S Guest

    I just can't seem to get started here. I have a requirement to be the back
    end of a self-subscription service for a website. I know what "services" I
    need to provide:

    subscribe(String userId, String password)
    login(String userid, String password, String ipAddress)
    String verify(String token, String ipAddress)

    I have them done as a .jws file in Axis, each returning a single String.
    That's where I'm stuck. I don't like the way the response is formatted.
    For the 'login' service, I need to return some XML describing the user--
    some types and accessGroups, in addition to his name.

    If I just form up the XML and send it back as the String return value of the
    method, I get this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <loginResponse
    soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <loginReturn xsi:type="xsd:string">
    <user>
    <name>wendy</name>
    <groups><group>staff</group></groups>
    </user>
    </loginReturn>
    </loginResponse>
    </soapenv:Body>
    </soapenv:Envelope>

    What I *think* I want is to get rid of the <loginResponse> and <loginReturn>
    tags and just have my XML as the <soapenv:Body>. But I'm just starting to
    try to figure this out, so maybe that's not at all what should happen.

    In addition, these web services will be consumed by people running IIS.
    Presumably they'll have the latest and greatest, and I've heard .NET is
    based on web services, so perhaps that won't be an issue. But they're newer
    at this than I am, so I don't want to make a mistake on my end and make it
    harder than it has to be for them.

    I also don't want to do something that I'll regret and be stuck with
    forever, since if I learn the error of my ways too late, it will require
    coding changes on their end that will likely never happen.

    Any advice is appreciated, I'm working my way through O'Reilly's "Java Web
    Services" book so perhaps the lightbulb will come on soon.

    --
    Wendy in Chandler, AZ
     
    Wendy S, Jul 26, 2003
    #1
    1. Advertisements

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. Saumendra
    Replies:
    0
    Views:
    1,358
    Saumendra
    Jun 24, 2003
  2. Nick
    Replies:
    1
    Views:
    7,214
    Alvin Bruney - ASP.NET MVP
    Sep 12, 2005
  3. Anup
    Replies:
    1
    Views:
    3,061
    Mark Rae
    May 9, 2006
  4. imlakhani

    Web Services Restful Services

    imlakhani, Dec 16, 2009, in forum: Java
    Replies:
    1
    Views:
    620
    Jeffrey H. Coffield
    Dec 16, 2009
  5. va
    Replies:
    0
    Views:
    332
  6. John
    Replies:
    4
    Views:
    828
  7. brian.ackermann

    PSEUDO WEB SERVICES CALLING OTHER SERVICES

    brian.ackermann, Oct 31, 2007, in forum: ASP General
    Replies:
    2
    Views:
    310
    Anthony Jones
    Nov 1, 2007
  8. Software Engineer
    Replies:
    0
    Views:
    496
    Software Engineer
    Jun 10, 2011
Loading...