problem while consuming Nav2009 sp1 webservice

svikas1
Member Posts: 25
Hi All,
I published a webservice in Nav2009 sp1 and consuming through navision via soap.
I am getting the below error.
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
- <s:Body>
- <s:Fault>
<faultcode xmlns:a="urn:microsoft-dynamics-schemas/error">a:Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLMissingMethodException</faultcode>
<faultstring xml:lang="en-US">Function ID 1500000 was called. The object with ID 0 does not have a member with that ID.</faultstring>
- <detail>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">Function ID 1500000 was called. The object with ID 0 does not have a member with that ID.</string>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
The same is working fine in Nav2009 but getting problem Nav2009sp1.
Do anyone know what am i doing wrong
Thanx in advance....
I published a webservice in Nav2009 sp1 and consuming through navision via soap.
I am getting the below error.
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
- <s:Body>
- <s:Fault>
<faultcode xmlns:a="urn:microsoft-dynamics-schemas/error">a:Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLMissingMethodException</faultcode>
<faultstring xml:lang="en-US">Function ID 1500000 was called. The object with ID 0 does not have a member with that ID.</faultstring>
- <detail>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">Function ID 1500000 was called. The object with ID 0 does not have a member with that ID.</string>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
The same is working fine in Nav2009 but getting problem Nav2009sp1.
Do anyone know what am i doing wrong
Thanx in advance....
0
Comments
-
If you post the code you wrote in NAV to call the web service I'll try to help you...Why don't you try my compare tool?
http://www.mibuso.com/dlinfo.asp?FileID=11230 -
OnRun()
Soap()
Soap()
CREATE(locautSoapHttpConnector);
locautSoapHttpConnector.Property('EndPointURL',
'http://192.168.0.27:7049/TestWs/ws/CRONUS Retail India Ltd/Codeunit/FirstWS');
locautSoapHttpConnector.Connect;
locautSoapHttpConnector.Property('AuthUser', 'abc');
locautSoapHttpConnector.Property('AuthPassword', '9828927');
locautSoapHttpConnector.Property('Timeout', 5 * 1000);
locautSoapHttpConnector.Property('SoapAction','urn:microsoft-dynamics-schemas/codeunit/FirstWS');
locautSoapHttpConnector.BeginMessage;
CREATE(locautSoapSerializer);
locautSoapSerializer.Init(locautSoapHttpConnector.InputStream);
locautSoapSerializer.StartEnvelope('SOAP','STANDARD');
locautSoapSerializer.StartBody;
locautSoapSerializer.StartElement('Helloworld','urn:microsoft-dynamics-schemas/codeunit/FirstWS');
locautSoapSerializer.EndElement;
locautSoapSerializer.EndBody;
locautSoapSerializer.EndEnvelope;
locautSoapHttpConnector.EndMessage;
CREATE(locautXmlDoc);
locautXmlDoc.load(locautSoapHttpConnector.OutputStream);
{
XMLNode := locautXmlDoc.selectSingleNode('//sen1:Id');
IF NOT ISCLEAR(XMLNode) THEN
MESSAGE(XMLNode.text);
}
locautXmlDoc.save('D:\temp1.xml');0 -
svikas1 wrote:OnRun()
Soap()
Soap()
CREATE(locautSoapHttpConnector);
locautSoapHttpConnector.Property('EndPointURL',
'http://192.168.0.27:7049/TestWs/ws/CRONUS Retail India Ltd/Codeunit/FirstWS');
locautSoapHttpConnector.Connect;
locautSoapHttpConnector.Property('AuthUser', 'abc');
locautSoapHttpConnector.Property('AuthPassword', '9828927');
locautSoapHttpConnector.Property('Timeout', 5 * 1000);
//locautSoapHttpConnector.Property('SoapAction','urn:microsoft-dynamics-schemas/codeunit/FirstWS');
locautSoapHttpConnector.Property('SoapAction','FirstWS');
locautSoapHttpConnector.BeginMessage;
CREATE(locautSoapSerializer);
locautSoapSerializer.Init(locautSoapHttpConnector.InputStream);
locautSoapSerializer.StartEnvelope('SOAP','STANDARD');
locautSoapSerializer.StartBody;
locautSoapSerializer.StartElement('Helloworld','urn:microsoft-dynamics-schemas/codeunit/FirstWS');
locautSoapSerializer.EndElement;
locautSoapSerializer.EndBody;
locautSoapSerializer.EndEnvelope;
locautSoapHttpConnector.EndMessage;
CREATE(locautXmlDoc);
locautXmlDoc.load(locautSoapHttpConnector.OutputStream);
{
XMLNode := locautXmlDoc.selectSingleNode('//sen1:Id');
IF NOT ISCLEAR(XMLNode) THEN
MESSAGE(XMLNode.text);
}
locautXmlDoc.save('D:\temp1.xml');
Can you try with the amendment in red?
I've previosly used this kind of code....and it works...What is the Automation you are using?
IF ISCLEAR(XmlDoc) THEN
CREATE(XmlDoc);
IF ISCLEAR(XmlHttp) THEN
CREATE(XmlHttp);
XmlHttp.open('POST','http://localhost:7047/DynamicsNAV/WS/'+OtherCompany+'/Codeunit/RunJob',0);
XmlHttp.setRequestHeader('Content-Type', 'text/xml; charset=utf-8');
XmlHttp.setRequestHeader('SOAPAction','RunJob');
XmlHttp.setTimeouts(10000,10000,10000,100000);
XmlHttp.send('<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' +
'<soap:Body><RunJob xmlns="urn:microsoft-dynamics-schemas/codeunit/RunJob">' +
'<objectType>'+ObjectType+'</objectType><objectID>'+FORMAT(ObjectID)+'</objectID>'+
'</RunJob></soap:Body></soap:Envelope>');
IF XmlHttp.status <> 200 THEN
MESSAGE('Http Error ' + ' ' + FORMAT(XmlHttp.status) + ': ' + XmlHttp.statusText);
XmlDoc.async := FALSE;
XmlDoc.load(XmlHttp.responseBody);Why don't you try my compare tool?
http://www.mibuso.com/dlinfo.asp?FileID=11230
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