Quantcast
Channel: BizTalk Server General Forum
Viewing all articles
Browse latest Browse all 872

Consume web service with "import schema" element in WSDL file in BizTalk

$
0
0

Hi All,

I have the web service wsdl file got from the third party. when I tred to consume it with "consume WCF web service wizard". I got the error:

"Error consuming WCF service metadata.
Object reference not set to an instance of an object"

Then I checked the wsdl file and found there is "import" element in the "schema" record, but the "schema" record doesn't have targetNamespace, and the "import" element try to import the xsd schemas from the local space(am I right?) as follows.

"<wsdl:types xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:schema>
<xsd:import schemaLocation="MHService.xsd1.xsd" namespace="</xsd:schema></wsdl:types">http://org/emedny/mhs/"/></xsd:schema></wsdl:types>"

Then I checked the web service with SOAPUI, I find there are 26 xsd files. I downloaded all of the wsdl file and the xsd files, tried to consume them using "WCF service consume wizard"  from local files again, but that didn't work.

I checked the forums, found this one is mostly like my problem: http://social.msdn.microsoft.com/Forums/en-US/biztalkr2adapters/thread/f76a3985-d256-4928-b9e8-52d0f33db384/

But there is no amswer for it.

So does anybody have idea how to consume this web service in BizTalk? Can I change the wsdl file on my side to consume the web service?

This is the URL of the web service.

https://service100.emedny.org:9047/MHService?wsdl

Any information and help are welcome. Thanks for your time.




Viewing all articles
Browse latest Browse all 872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>