I am trying to send a xml file from on IS to another IS using the HTTPS protocol. When i send the xml from the client I receive an OK so the xml is send properly. On the IS server my result is the following:
name : node
value : com.wm.lang.xml.Node:-1:539729959
When I send it through HTTP the XML document is well received and I am quite sure that the certificates are installed properly.
Does anybody know how to resolve this issue? What does this value mean?
the port i call on the IS as server is configured as an https port (number is 1234) and is working fine. The port as access rights set to accept all(Allow by Default ).
Sounds to me like the system recognizes the input as XML and is automatically creating the node. Did you specify the content type as text/xml? Are you sending in an input signature of $xmldata? This will also create the node object automatically.
It is an interesting condition from my standpoint. Can you use the built-in service pub.xml:xmlNodeToDocument to convert your node to a document? It will at least determine if you have a valid node because if not, the service will not convert it to a document.
If client service is pub.client.http, I wud check for the response header status after the http post to make sure it is 200.
I would also set the encoding parameter in the xml definition tag
<?xml version=“1.0” encoding=“UTF-8”?>
Well, think of it like this: When you post your data into the system, the data has to have a name/value pair.
For example, the name could be $xmldata, and the value would be your data.
As a simple test, perhaps you can send in some data.
Create a flow with input of YourName. Inside the flow service, map the value of YourName into pub.flow:debugLog message input signature value. This will write the value of YourName into the server log so you can see what is coming through. Good for small values, wouldn’t recommend for large values.
With a simple html form, send in a text string with your name in it.
The name of the input variable on the html page is “YourName” and the value will be whatever you code. Whatever the value is, it should show up in the server log.
I have a feeling that the document you are posting does not have a variable assigned to it, so the server receives the communication but doesn’t know what to do with the data.
If you raise the level of your server debug log higher, you will eventually see the data coming through the post.
The data is ok, because it works when sending it over http.
Ray,
the variable (or the name) is “node” and the assigned value is the DATA
I can see the value/name pair coming in.
But as you say it seems that the server does not know its an xml or somehow the XML is corrupted by sending it over https.
Maybe I have to deencrypt the xml?
(will try what you suggest later on)