Copy link to clipboard
Copied
Hello,
When I am invoking the webservice with the following code. I am getting the following error.
Unable to parse WSDL as an XML document. | |
Parsing error: Fatal Error: URI=null Line=168: The element type "link" must be terminated by the matching end-tag "". |
Code that I have used is :
<CFINVOKE component="userinfo" METHOD="GetuserInfo" RETURNVARIABLE="result_info" >
<cfinvokeargument name="EMP" value="123456"/>
</cfinvoke>
<cfdump var="#result_info#">
<CFINVOKE webservice="http://www.test.com/userinformation.cfc?wsdl" METHOD="GetVehInfo" RETURNVARIABLE="result_info" >
<cfinvokeargument name="EMP" value="123456"/>
</cfinvoke>
<cfdump var="#result_info#">
We were able to call the component and get the output. While changing the same component as webservice by adding access="remote", we are able to navigate to the WSDL page. But, when we try to call the same, we receive the error.
Then , it worked while accessing a webservice using cfhttp .
We are facing another issue while accessing a java webservice using coldfusion (i.e., cfhttp)
Coldfusion Server is in Windows Environment (i.e., consumer )
Java /J2eee code is hosted IBM application server in Unix Envionment (i..e., producer /service provider)
We are accessing the webservice url using the colfusion cfhttp method as below with the WSL credential and soap request.
<cfhttp url="<<Webservicepath>>" method="post" >
<cfhttpparam type="header" name="content-type" value="text/xml">
<cfhttpparam type="header" name="SOAPAction" value="<<SOAPACTIONPATH>>">
<cfhttpparam type="header" name="content-length" value="#len(myxmlsoaprequest)#">
<cfhttpparam type="header" name="charset" value="utf-8">
<cfhttpparam type="cookie" name="WSL-credential" value="<<Cookie>>">
<cfhttpparam type="xml" name="message" value="#myxmlsoaprequest#">
</cfhttp>
We get cfhttp.filecontent as empty and cfhttp.errordetail as empty as like below.
Charset | ISO-8859-1 | ||||||||||||||||||||||||||
ErrorDetail | [empty string] | ||||||||||||||||||||||||||
Filecontent | [empty string] | ||||||||||||||||||||||||||
Header | HTTP/1.1 200 OK Connection: close Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Language: en-US Date: Thu, 04 Mar 2010 12:32:16 GMT Server: IBM_HTTP_Server/6.1.0.25 Apache/2.0.47 Content-Length: 0 Pragma: no-cache Cache-Control: no-cache Content-Type: text/html; charset=ISO-8859-1 | ||||||||||||||||||||||||||
Mimetype | text/html | ||||||||||||||||||||||||||
Responseheader |
| ||||||||||||||||||||||||||
Statuscode | 200 OK | ||||||||||||||||||||||||||
Text | YES |
while checking further , we found that we have received the below error log information in the service provider server error log (UNiX).
DCSV1036W: DCS Stack DefaultCoreGroup at Member : An unusual connectivity state occured with member
details: alarm(): Closing the connection because members did not manage to connect.
Can you please advise
Copy link to clipboard
Copied
Further, we tried with trace method of "cfhttp" with the same destination. We received permission denied message as below in the filecontent.
But this error was not visible, while we tried with post method of "cfhttp"
Filecontent 403 Forbidden You don't have permission to access / on this server. IBM_HTTP_Server/6.1.0.25 Apache/2.0.47 Server at wwwdev.test.test.com Port 80
Copy link to clipboard
Copied
just for the information,need to specify the proxyserver and port if any used in the tag
Copy link to clipboard
Copied
We don't have any proxy server or port in it..
Copy link to clipboard
Copied
The cfinvoke tells us you're passing a string to the web service. The soap call tells us the service requires an XML parameter. Which is it to be?
Also, you cannot go any further when Coldfusion tells you your WSDL has a fatal error. I would first sort this out: Parsing error: Fatal Error: URI=null Line=168: The element type "link" must be terminated by the matching end-tag ""?