Parameter in web service method is null!
Pedro_Iñiguez
Member Posts: 7
Hi,
I'm trying to access to method "CreateOrder" with parameter "parVendor". But i have always the same error:
Parameter in method CreateOrder in service CreateDocuments is null!
I haven't idea of what is the problem with my code. I hav e try to call another simple method like HelloWorld and i didn't have any problem.
My code:
CREATE(locautSoapHttpConnector);
locautSoapHttpConnector.Property('EndPointURL',
'http://localhost:7047/DynamicsNAV/WS/[MyCompany]/Codeunit/CreateDocuments');
l
ocautSoapHttpConnector.Connect;
locautSoapHttpConnector.Property('Timeout', 5 * 1000);
locautSoapHttpConnector.Property('SoapAction',
'urn:microsoft-dynamics-schemas/Codeunit/CrearDocumentos/CreateOrder');
locautSoapHttpConnector.BeginMessage;
CREATE(locautSoapSerializer);
locautSoapSerializer.Init(locautSoapHttpConnector.InputStream);
locautSoapSerializer.startEnvelope('SOAP','STANDARD');
locautSoapSerializer.startBody;
locautSoapSerializer.startElement('CreateOrder');
locautSoapSerializer.startElement('parVendor');
locautSoapSerializer.writeString('Vend001'); //Any text
locautSoapSerializer.endElement;
locautSoapSerializer.endElement;
locautSoapSerializer.endBody;
locautSoapSerializer.endEnvelope;
locautSoapHttpConnector.EndMessage;
CREATE(locautXmlDoc);
locautXmlDoc.load(locautSoapHttpConnector.OutputStream);
locautXmlDoc.save('c:\temp1.xml'); //Here i save the result and is where i have the error i've said
I'm trying to connect to connect from one Nav2009SP1 instance "A" to another Nav20009SP1 instance "B". I don't know if this will show you more clearly what I want to do.
Can somebody help me with that.
Thanks.
I'm trying to access to method "CreateOrder" with parameter "parVendor". But i have always the same error:
Parameter in method CreateOrder in service CreateDocuments is null!
I haven't idea of what is the problem with my code. I hav e try to call another simple method like HelloWorld and i didn't have any problem.
My code:
CREATE(locautSoapHttpConnector);
locautSoapHttpConnector.Property('EndPointURL',
'http://localhost:7047/DynamicsNAV/WS/[MyCompany]/Codeunit/CreateDocuments');
l
ocautSoapHttpConnector.Connect;
locautSoapHttpConnector.Property('Timeout', 5 * 1000);
locautSoapHttpConnector.Property('SoapAction',
'urn:microsoft-dynamics-schemas/Codeunit/CrearDocumentos/CreateOrder');
locautSoapHttpConnector.BeginMessage;
CREATE(locautSoapSerializer);
locautSoapSerializer.Init(locautSoapHttpConnector.InputStream);
locautSoapSerializer.startEnvelope('SOAP','STANDARD');
locautSoapSerializer.startBody;
locautSoapSerializer.startElement('CreateOrder');
locautSoapSerializer.startElement('parVendor');
locautSoapSerializer.writeString('Vend001'); //Any text
locautSoapSerializer.endElement;
locautSoapSerializer.endElement;
locautSoapSerializer.endBody;
locautSoapSerializer.endEnvelope;
locautSoapHttpConnector.EndMessage;
CREATE(locautXmlDoc);
locautXmlDoc.load(locautSoapHttpConnector.OutputStream);
locautXmlDoc.save('c:\temp1.xml'); //Here i save the result and is where i have the error i've said
I'm trying to connect to connect from one Nav2009SP1 instance "A" to another Nav20009SP1 instance "B". I don't know if this will show you more clearly what I want to do.
Can somebody help me with that.
Thanks.
0
Comments
-
Accessing NAV Webservice directly from SOAP isn't possible, you need to pass Credentials which SOAP is unable to do.0
-
0
-
ara3n wrote:
Cool, I didn't know this feature:
XmlHttp.open(’POST’,'http://localhost:7047/xxx’,0, domain/windowslogin,PASSWORD);
Is this possible with Mozilla's window.XMLHttpRequest as well?0 -
I have not looked at it.
I will have to google and try it.0 -
I also had a Webservice that gave a parameter NULL error, while the parameter (In our case a User ID) was certainly not NULL.
At the customers site, the WebService servicetier was installed after and separated from the RTC Servicetier with another name.
And believe it or not, but our solution to get rid of the NULL error was to remove both servicetiers and create them again, in one Service- subdirectory and, most important, with 1 instance name!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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
