Hi All,
Appreciate all your support.
I am completely new to SOA & Web Services. JBoss WS setup is done with Jboss AS.
Now my problem is where to start ?? I want to start the eclipse ws project. I have gone
thru the JBoss WS documentation, but no where I found what am looking for.
Here is what I am looking.
=> Eclipse project Structure
=> Libraries required. And Most important is
=> Where to Start ?
Regards,
Rajagopal Y (Raj)
HCU-Consulting & Enterprise Solutions.
Phone: (C) +91-9986584084 / (W)+91-80-6658 3685.
-----Original Message-----
From: jbossws-users-bounces(a)lists.jboss.org [mailto:jbossws-users-bounces@lists.jboss.org]
On Behalf Of jbossws-users-request(a)lists.jboss.org
Sent: Sunday, January 06, 2008 10:30 PM
To: jbossws-users(a)lists.jboss.org
Subject: jbossws-users Digest, Vol 16, Issue 14
Send jbossws-users mailing list submissions to
jbossws-users(a)lists.jboss.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.jboss.org/mailman/listinfo/jbossws-users
or, via email, send a message with subject or body 'help' to
jbossws-users-request(a)lists.jboss.org
You can reach the person managing the list at
jbossws-users-owner(a)lists.jboss.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of jbossws-users digest..."
Today's Topics:
1. [JBossWS] - charset problem with jbossws 2.0.2 and .net
clients (EverlastX1)
2. [JBossWS] - Re: charset problem with jbossws 2.0.2 and .net
clients (EverlastX1)
----------------------------------------------------------------------
Message: 1
Date: Sat, 5 Jan 2008 16:36:05 -0500 (EST)
From: EverlastX1 <do-not-reply(a)jboss.com>
Subject: [jbossws-users] [JBossWS] - charset problem with jbossws
2.0.2 and .net clients
To: jbossws-users(a)lists.jboss.org
Message-ID:
<858089.1199568965710.JavaMail.jboss(a)colo-br-02.atl.jboss.com>
Content-Type: text/plain; charset=UTF-8
Good evening ladies and gentleman,
I am struggling sending special character like the German üö from the .net client to the
jboss server.
I have the following reproducible scenario:
jboss 4.22
jbossws 2.0.2GA
.Net Client
.net is pinging the following String to jboss:
""from .NET with ü -- ö""
Jboss is receiving this string and post back an array with following to values
"from .NET with ü -- ö" the String .net sended just post it back
"Greetings from J with ü -- ö"
.net output is:
Sending: from .NET with ü -- ö
Recived from Jboss Value 1: Greetings from J with ü -- ö
Recived from Jboss Value 2: from .NET with ü -- ö
the jboss output is:
2008-01-05 21:54:36,921 DEBUG [de.Company.test.WebSevices.ServerAgentEndpointBean] from
.Net recived: from .NET with ü -- ö
The interesting thing is happening when the protocol sniffer is on:
in the Sniffer: .NET is Sending
POST /SKMS_Server-SKMS_Server/ServerAgentEndpointBean HTTP/1.1
| User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol
2.0.50727.1433)
| Content-Type: text/xml; charset=utf-8
| SOAPAction: ""
| Host: 127.0.0.1:8080
| Content-Length: 359
| Expect: 100-continue
| Connection: Keep-Alive
| <?xml version="1.0" encoding="utf-8"?>
| <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsi...
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <soap:Body>
| <test xmlns="http://WebSevices.test.company.de/">
| <TestString xmlns="">from .NET with ü -- ö</TestString>
| </test>
| </soap:Body>
| </soap:Envelope>
|
|
in the Sniffer: Jboss Server is sending back!
| HTTP/1.1 200 OK
| Server: Apache-Coyote/1.1
| X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA
date=200710221139)/Tomcat-5.5
| Content-Type: text/xml;charset=UTF-8
| Transfer-Encoding: chunked
| Date: Sat, 05 Jan 2008 20:54:36 GMT
|
| <env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header></env:Header><env:Body>
| <ns2:testResponse xmlns:ns2="http://WebSevices.test.company.de/">
| <return>Greetings from J with �¼ --
�¶</return><return>from .NET with �¼ --
| �¶
| </return></ns2:testResponse></env:Body></env:Envelope>
|
The .NET Client Code
| test test_remote = new WebReference.test();
| String tesString = "from .NET with ü -- ö";
| test_remote.TestString = tesString;
|
| string[] result = new WebReference.ServerAgentEndpoint().test(test_remote);
|
| Console.WriteLine("Sending: " + tesString);
| Console.WriteLine("Recived from Jboss Value 1: " + result[0]);
| Console.WriteLine("Recived from Jboss Value 2: " + result[1]);
|
The Java Code is:
| @WebMethod
| public String[] test (@WebParam(name="TestString") String str){
| String[] result = new String[]{"Greetings from J with ü -- ö",str};
| log.debug("from .Net recived: " + str);
| log.debug("This will be the result by Jboss to .Net" +
result.toString());
| return result;
| }
|
|
|
As I see it from the sniffer the .Net client is sendig the data right to jboss encoding
the content with utf-8 and jboss is decoding it right.
When jboss is sending data to .net the data are encoded twice with utf-8
you can see it in the sniffer.
.net is sending: from .NET with ü -- ö" <<-- sniffer: encoded once with
utf-8
The line "from J with �¼ -- �¶" <<-- sniffer: utf-8 over utf-8
.net did it right and encoded it to "from J with ü -- ö" <<--
decoded the string but still one utf-8 encoding is left.
so i guess something is wrong with the utf-8 encoding in jboss or jbossws?
can anybody verify my problem?
greetings
V.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117341#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...
------------------------------
Message: 2
Date: Sun, 6 Jan 2008 03:56:59 -0500 (EST)
From: EverlastX1 <do-not-reply(a)jboss.com>
Subject: [jbossws-users] [JBossWS] - Re: charset problem with jbossws
2.0.2 and .net clients
To: jbossws-users(a)lists.jboss.org
Message-ID:
<31872611.1199609819269.JavaMail.jboss(a)colo-br-02.atl.jboss.com>
Content-Type: text/plain; charset=UTF-8
This is the debug message of the response of the Test(String ping) function from the
jboss logs.
The interesting thing about it is that at the point were the logs were created the values
are encoded already in utf-8.
So the second encoding step is happening somewhere further beyond this point.
2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.EndpointInvocation] setReturnValue:
[Ljava.lang.String;
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxws.handler.MessageContextJAXWS]
Begin response processing
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation]
popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@eb91ec (Thread
http-127.0.0.1-8080-13)
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation]
pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@159318b
(Thread http-127.0.0.1-8080-13)
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS]
bindResponseMessage: {http://WebSevices.test.Company.de/}test
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.EndpointInvocation] getReturnValue
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.EndpointInvocation]
transformPayloadValue: [Ljava.lang.String; -> [Ljava.lang.String;
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxrpc.ParameterWrapping]
wrapResponseParameter: de.Company.test.WebSevices.jaxws.TestResponse
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.EndpointInvocation] setReturnValue:
org.jboss.ws.core.soap.SOAPBodyElementDoc
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS]
callResponseHandlerChain: PRE
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS]
callResponseHandlerChain: ENDPOINT
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS]
callResponseHandlerChain: POST
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS]
closeHandlerChain
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor]
close
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS]
closeHandlerChain
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor]
close
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS]
closeHandlerChain
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor]
close
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] END
handleRequest: jboss.ws:context=SKMS_Server-SKMS_Server,endpoint=ServerAgentEndpointBean
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.soap.SOAPContentElement]
-----------------------------------
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.soap.SOAPContentElement]
Transitioning from OBJECT_VALID to XML_VALID
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.soap.ObjectContent] getXMLFragment
from Object [xmlType={http://WebSevices.test.Company.de/}testResponse,javaType=class
de.Company.test.WebSevices.jaxws.TestResponse]
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxws.JAXBSerializer] serialize:
[xmlName={http://WebSevices.test.Company.de/}testResponse,xmlType={http://WebSevices.test.Company.de/}testResponse]
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.jaxws.JAXBSerializer] serialized:
<ns2:testResponse
xmlns:ns2="http://WebSevices.test.Company.de/"><return>Greetings from J
with ü -- ö</return><return>from .NET with ü --
ö</return></ns2:testResponse>
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.soap.ObjectContent] xmlFragment:
[source=<ns2:testResponse
xmlns:ns2="http://WebSevices.test.Company.de/"><return>Greetings from J
with ü -- ö</return><return>from .NET with ü --
ö</return></ns2:testResponse>]
| 2008-01-05 21:54:36,921 DEBUG [org.jboss.ws.core.soap.SOAPContentElement]
-----------------------------------
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117361#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...
------------------------------
_______________________________________________
jbossws-users mailing list
jbossws-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossws-users
End of jbossws-users Digest, Vol 16, Issue 14
*********************************************
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended
recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION.
Any review or reliance by others or copying or distribution or forwarding of any or all of
the contents in this message is STRICTLY PROHIBITED. If you are not the intended
recipient, please contact the sender by email and delete all copies; your cooperation in
this regard is appreciated.