Alternating between calling webservice in Java and in .Net.

Discussion in 'ASP .Net Web Services' started by eric, Jan 24, 2005.

  1. eric

    eric Guest

    I have given a WSDL file to a bunch of Java and C# developers and wants to
    access theire services by just changing the URL on the webservice object.
    //Call a Java webservice
    wolf1.TTicketService w = new wolf1.TTicketService();


    //Change only the URL and call a .net webservice.

    w.Url = "http://localhost/WebService5/Service1.asmx";


    This throws an exception:
    'System.Web.Services.Protocols.SoapException' occurred in
    Additional information: Server did not recognize the value of HTTP Header
    SOAPAction: .

    I have noticed that the Java webservices doesn´t implement the same wsdl.
    They say they can't. They use encoded when we use literal. My question is
    How do I change my code so we can use rpc.Encoded?

    eric, Jan 24, 2005
    1. Advertisements

  2. Hello Eric,

    Couple of things...
    1. If the wsdls are different you cannot use the same proxy. The way the
    proxy works is that it uses attributes on the proxy to serialize and deserialize
    accordingly and they are specific to the wsdl. So you can't use the same
    proxy for different endpoints if they dont represent the same service (i.e.
    2. There seems to be a problem in the java web service that cant recognize
    the Soapaction header... this is a totally different problem altogether.
    And you probably need to give more details on the platform to answer that

    Dilip Krishnan
    dkrishnan at geniant dot com
    Dilip Krishnan, Jan 24, 2005
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.