• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Webservice not accessible using cfinvoke,but emptystring in errordetail,filecontent using cfhttp

Guest
Mar 04, 2010 Mar 04, 2010

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   "".
It is recommended that you use a web browser to retrieve  and examine   the requested WSDL document to ensure it is correct.

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

struct

Cache-Control

no-cache

Connection

close

Content-Language

en-US

Content-Length

0

Content-Type

text/html;     charset=ISO-8859-1

Date

Thu,     04 Mar 2010 12:32:16 GMT

Expires

Thu,     01 Jan 1970 00:00:00 GMT

Explanation

OK

Http_Version

HTTP/1.1

Pragma

no-cache

Server

IBM_HTTP_Server/6.1.0.25     Apache/2.0.47

Status_Code

200

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

TOPICS
Advanced techniques

Views

2.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 08, 2010 Mar 08, 2010

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 09, 2010 Mar 09, 2010

Copy link to clipboard

Copied

just for the information,need to specify the proxyserver and port if any used in the tag

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 11, 2010 Apr 11, 2010

Copy link to clipboard

Copied

We don't have any proxy server or port in it..

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 12, 2010 Apr 12, 2010

Copy link to clipboard

Copied

LATEST

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 ""?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation