B
balajio
Hi Everybody,
I am having a problem with a web service client calling a web service
residing on a JBoss 4.0.1 SP1 application server.
The web service has single method, sayHelloWorld. It does not take any
parameters and returns "Hello World !!". The client and the application
server reside on the same PC running Windows XP Pro(SP2).
Here are the request and response messages I see in tcpmon:
============================REQUEST============================
GET /HelloWorldWS/HelloWorldWS HTTP/1.1
User-Agent: Java/1.4.2
Host: localhost
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
========================END OF REQUEST=========================
============================RESPONSE===========================
HTTP/1.1 200 OK
X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-4.0.1sp1 (build:
CVSTag=JBoss_4_0_1_SP1 date=200502160314)
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 498
Date: Sun, 03 Apr 2005 02:55:36 GMT
Server: Apache-Coyote/1.1
<head>
<meta http-equiv='Content-Type content='text/html; charset=iso-8859-1'>
<title>JBossWS</title>
<link rel='stylesheet' href='/ws4ee/styles.css'>
</head>
<h2>And now... Some Services</h2>
<ul>
<li>HelloWorldWS.war#HelloWorldIF<a
href='http://rainbow:8080/HelloWorldWS/HelloWorldWS?wsdl'> <i>(wsdl)</i></a></li><ul><li>sayHelloWorld</li></ul>
<li>Version<a
href='http://localhost/HelloWorldWS/services/Version?wsdl'> <i>(wsdl)</i></a></li><ul><li>getVersion</li></ul>
</ul>
========================END OF RESPONSE========================
The error message I get in the exception on the client side is:
===========================ERROR============================
Error processing WSDL document:
org.xml.sax.SAXException: Fatal Error:
URI=http://localhost:7070/HelloWorldWS/HelloWorldWS Line=2: Whitespace
required before attributes.
========================END OF ERROR========================
If you see in the response, the http-equiv attribute value does not
have a closing quote and the SAX parser is throwing an exception, from
what I understand and see.
Is there any configuration required either on the server side or the
client side ? I did not do any configuration and just followed the
documentation for JBoss 4.0.1 app server.
Has anybody seen this error before ? Or, does anybody have any idea why
the malformed repsonse message is generated ?
Appreciate your thoughts/ideas to resolve this error and thanks in
advance.
I am having a problem with a web service client calling a web service
residing on a JBoss 4.0.1 SP1 application server.
The web service has single method, sayHelloWorld. It does not take any
parameters and returns "Hello World !!". The client and the application
server reside on the same PC running Windows XP Pro(SP2).
Here are the request and response messages I see in tcpmon:
============================REQUEST============================
GET /HelloWorldWS/HelloWorldWS HTTP/1.1
User-Agent: Java/1.4.2
Host: localhost
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
========================END OF REQUEST=========================
============================RESPONSE===========================
HTTP/1.1 200 OK
X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-4.0.1sp1 (build:
CVSTag=JBoss_4_0_1_SP1 date=200502160314)
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 498
Date: Sun, 03 Apr 2005 02:55:36 GMT
Server: Apache-Coyote/1.1
<head>
<meta http-equiv='Content-Type content='text/html; charset=iso-8859-1'>
<title>JBossWS</title>
<link rel='stylesheet' href='/ws4ee/styles.css'>
</head>
<h2>And now... Some Services</h2>
<ul>
<li>HelloWorldWS.war#HelloWorldIF<a
href='http://rainbow:8080/HelloWorldWS/HelloWorldWS?wsdl'> <i>(wsdl)</i></a></li><ul><li>sayHelloWorld</li></ul>
<li>Version<a
href='http://localhost/HelloWorldWS/services/Version?wsdl'> <i>(wsdl)</i></a></li><ul><li>getVersion</li></ul>
</ul>
========================END OF RESPONSE========================
The error message I get in the exception on the client side is:
===========================ERROR============================
Error processing WSDL document:
org.xml.sax.SAXException: Fatal Error:
URI=http://localhost:7070/HelloWorldWS/HelloWorldWS Line=2: Whitespace
required before attributes.
========================END OF ERROR========================
If you see in the response, the http-equiv attribute value does not
have a closing quote and the SAX parser is throwing an exception, from
what I understand and see.
Is there any configuration required either on the server side or the
client side ? I did not do any configuration and just followed the
documentation for JBoss 4.0.1 app server.
Has anybody seen this error before ? Or, does anybody have any idea why
the malformed repsonse message is generated ?
Appreciate your thoughts/ideas to resolve this error and thanks in
advance.