Error when using Soap Toolkit from rtc client in NAV 2009 R2

pafuti
Member Posts: 2
Hi,
I have set up a webservice call using Microsoft Soap Toolkit V3.
When I call it from the Classic Client it works perfectly fine.
When I call it from the Rtc Client it give this error:
The call to member EndMessage failed: The current setting of the WriteMode property is incompatible with the operation.
I have build the code like this:
I have set up a webservice call using Microsoft Soap Toolkit V3.
When I call it from the Classic Client it works perfectly fine.
When I call it from the Rtc Client it give this error:
The call to member EndMessage failed: The current setting of the WriteMode property is incompatible with the operation.
I have build the code like this:
Name DataType Subtype Serializer Automation 'Microsoft Soap Type Library v3.0'.SoapSerializer30 Connector Automation 'Microsoft Soap Type Library v3.0'.HttpConnector30 XMLDOM Automation 'Microsoft XML, v6.0'.DOMDocument IF ISCLEAR(Connector) THEN CREATE(Connector); Connector.Property('EndPointURL',WsdlUrl); Connector.Connect; Connector.Property('SoapAction',SoapActionMethod); Connector.BeginMessage; CREATE(Serializer); Serializer.Init(Connector.InputStream); Serializer.StartEnvelope('','STANDARD','utf-8'); Serializer.StartHeader; Serializer.StartElement('ServiceAuthenticationHeader',Url); Serializer.StartElement('Username',Url); Serializer.WriteString(Username); Serializer.EndElement; Serializer.StartElement('Password',Url); Serializer.WriteString(Password); Serializer.EndElement; Serializer.EndElement; Serializer.EndHeader; Serializer.StartBody('STANDARD'); Serializer.StartElement(ElementName,url'); Serializer.WriteString(ElementValue); Serializer.EndElement; Serializer.EndBody; Serializer.EndEnvelope; Connector.EndMessage; (It is here it fails when calling from the rtc client) IF ISCLEAR(XMLDOM) THEN CREATE(XMLDOM); XMLDOM.load(Connector.OutputStream); XMLNode := XMLDOM.selectSingleNode('//valid'); IF NOT ISCLEAR(XMLNode) THEN MESSAGE(XMLNode.text); XMLDOM.save('c:\orderinit.xml'); CLEAR(XMLDOM); CLEAR(Connector);Any Ideas ?
0
Comments
-
Something new? I have the same problem.0
-
did you find a solution?0
-
Hi, recommendation from microsoft is to replace ms soap toolkit 3.0 with serverxmlhttp60. This is what I had to do.0
-
did you try to change the CREATE calls?
... CREATE(Connector,FALSE,ISSERVICETIER); CREATE(XMLDOM,FALSE,ISSERVICETIER); ...
-Mihail- [MCTS]0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions