Problem in Consuming .Net 1.1 Web service wsdl in java application


i have developed web service in .net framework 1.1 has 4 overloaded methods , 1 normal method string return type. overloaded method in web service, have gave messagename make unique in soap message. these overloaded methods changed complex type when gave messagename attribute in web method found in wsdl.

 

the problem

 

when invoked web service in .net client application, works fine. when try consume wsdl  through wsdl2java axis tool, supporting core java classes complex type are not created.

 

also, tried host web service in 2 servers has windows 2000 server os.

in server1, wsdl looks

 

<?xml version="1.0" encoding="utf-8" ?>

- <wsdlbig smileefinitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlnstongue tiedoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlnstongue tied="http://www.w3.org/2001/xmlschema" xmlnstongue tiedoapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns=http://accountservice xmlns:tm="http://microsoft.com/wsdl/mime/textmatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetnamespace=http://accountservice xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <stongue tiedchema elementformdefault="qualified" targetnamespace=http://accountservice>
- <s:element name="getcountrycode">
  <s:complextype />
  </s:element>
- <s:element name="getcountrycoderesponse">
- <s:complextype>
- <stongue tiedequence>
  <s:element minoccurs="0" maxoccurs="1" name="getcountrycode" type="stongue tiedtring" />
  </stongue tiedequence>
  </s:complextype>
  </s:element>
 
in server 2, wsdl looks this
 
<?xml version="1.0" encoding="utf-8" ?>
- <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlnstongue tiedoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlnstongue tied="http://www.w3.org/2001/xmlschema" xmlnstongue tied0=http://accountservice xmlnstongue tiedoapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textmatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetnamespace=http://accountservice xmlns="http://schemas.xmlsoap.org/wsdl/">
- <types>
- <stongue tiedchema elementformdefault="qualified" targetnamespace=http://accountservice>
- <s:element name="ispaymentserviceactive">
  <s:complextype />
  </s:element>
- <s:element name="ispaymentserviceactiveresponse">
- <s:complextype>
- <stongue tiedequence>
  <s:element minoccurs="1" maxoccurs="1" name="ispaymentserviceactiveresult" type="s:boolean" />
  </stongue tiedequence>
  </s:complextype>
  </s:element>
- <s:element name="getpaymentaccount">
- <s:complextype>
- <stongue tiedequence>
  <s:element minoccurs="0" maxoccurs="1" name="expertid" type="stongue tiedtring" />
  <s:element minoccurs="0" maxoccurs="1" name="accountid" type="stongue tiedtring" />
  </stongue tiedequence>
  </s:complextype>
  </s:element>

 

why wsdl in server 1 has tag <wsdl:types> , not in server 2 ?

please me.

 

 

 

there no difference between <wsdl: types> in first server, , <types> in second. because second server uses xmlns=http://schemas.xmlsoap.org/wsdl/ which makes default schema elements no prefix.

 

there big difference between 2 wsdl files, because appear describe totally different web services! notice have no elements in common?



Archived Forums A-B  >  ASMX Web Services and XML Serialization



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'