WS-reference import: incorrect format

This forum is intended for cases when a problem can not be solved due to restrictions of the platform: a bug or lack of functionality.

#1
People who like this:0Yes/0No
Active user
Rating: 2
Joined: May 15, 2013
Company:

Hello,
I wanted to use a public Web service in 1C, but 1C (8.3.5.1383) fails to create a WS reference when importing the WSDL with "Incorrect format" error.

Web service description:
http://www.lb.lt/webservices/FxRates/en/

WSDL:
http://www.lb.lt/webservices/FxRates/FxRates.asmx?wsdl

Can I do anything to fix it?

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Aurimas Fišeras!

We have accepted your request and will provide an answer when finish the investigation of this issue.

 
#3
People who like this:1Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Aurimas Fišeras!

Unfortunately, there is a problem with the format of WSDL of this web service. Message parts section of Web Services Description Language (WSDL) 1.1 says: "...Each part is associated with a type from some type system using a message-typing attribute..."

So currently you can use direct HTTPConnection requests to the service to emulate SOAP function calls. The developer team accepted a feature request to make format requirements less strict.

 
#4
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Mar 8, 2012
Company: Smart ID

Hello Timofey,

I'm dealing with the same error when trying to create a WS-reference in 1C. The version I use is 8.3.6.2332.
Can you please provide an example of how to make HTTPConnection requests to the service in order to emulate SOAP function calls?

 
#5
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Daniel Miu.

Please, see SOAP service header modification or any alternative.

 
#6
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Mar 8, 2012
Company: Smart ID

Thanks for the reply, was useful.

Meanwhile I found out what was the reason for the error: ws policy. After I removed the policy part (presented below) from the wsdl, the 1C platform had no problem in importing it.

<wsp:UsingPolicy wsdl:required="true" />
<wsp:Policy wsu:Id="Name" />
...
<wsp:Policy>
 <wsp:PolicyReference URI="#Name" />
</wsp:Policy>



Do you know if this is something that can be handle by the platform in the latest versions?

 
#7
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Daniel Miu.

1C:Enterprise platform is improved constantly.

If you will provide a full WSDL file, I could send it to developers for investigation.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.