Namespace truncated while Consuming JAVA Webservice in C#

Kilitli Namespace truncated while Consuming JAVA Webservice in C#

  • 05 Haziran 2012 Salı 04:08
     
     

    Hi,

    Iam newbie in web developement.

    I have a java web service.It has a specefic namespace token.

    I have created a C# Windows Application which act as client to above web service.

     

    Now when i am making a soap call(via objects created by VS2005) ,somehow Namespace tokens that exist in WSDL are trimmed and deleted in Actual soap call.

    I have also used soap extension where i am able to identify that namespace token(s) are removed.

    eg.

    below given is the sample call generated from SOAPUI.I need this.

    </soapenv:Header>
       <soapenv:Body>
          <enr:SomeSoapFunction>
             <SomeSoapFunction param1="LIF" param2="123456"/>
          </enr:SomeSoapFunction>
       </soapenv:Body>
    </soapenv:Envelope>

     

    Instead i am getting this with enr token removed.Though "XLMNS:enr" do exist as namespace in WSDL.

     

    Thanks in Advance.

Tüm Yanıtlar

  • 11 Temmuz 2012 Çarşamba 00:14
     
     

    Find for the namespace in the autogenerated proxyclass and remove the namespace from that,

    looks like the visual studio autogenerated proxyclass is different that what we seen in soapui

    hence remove the namespace and try

  • 24 Temmuz 2012 Salı 02:30
    Moderatör
     
     

    The namespace prefix does not matter in any way. It is simply an alias for the actual namespace. In your example, the prefix could be "foo", and it would mean exactly the same thing.


    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects