Desktop version

Main > Forum > 1C:Enterprise Platform > Bugs and functionality requests to 1C:Enterprise platform > WS-reference import: incorrect format

Forum

Search UsersRules
WS-reference import: incorrect format
#1
Active user
Points:: 0
Joined:: May 15, 2013

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?

Profile
#2
Guest
Points::
Joined::

Hello, Aurimas Fišeras!

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

Profile
#3
Guest
Points::
Joined::

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.

Profile
#4
Just came
Points:: 0
Joined:: Mar 8, 2012

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?

Profile
#5
Guest
Points::
Joined::

Hello, Daniel Miu.

Please, see SOAP service header modification or any alternative.

Profile
#6
Just came
Points:: 0
Joined:: Mar 8, 2012

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?

Profile
#7
Guest
Points::
Joined::

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.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.