| {
|
| /**
| * Standard property: message direction, true
for
| * outbound messages, false
for inbound.
| * Type: boolean
| */
| public static final String MESSAGE_OUTBOUND_PROPERTY = "javax.xml.ws.handler.message.outbound";
|
| /**
| * Standard property: Map of attachments to a message for the inbound
| * message, key is the MIME Content-ID, value is a DataHandler.
| *
Type: java.util.Map
| */
| public static final String INBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.inbound";
|
| /**
| * Standard property: Map of attachments to a message for the outbound
| * message, key is the MIME Content-ID, value is a DataHandler.
| * Type: java.util.Map
| */
| public static final String OUTBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.outbound";
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143363#4143363
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143363
From do-not-reply at jboss.com Fri Apr 11 04:24:25 2008
From: do-not-reply at jboss.com (rouvas)
Date: Fri, 11 Apr 2008 04:24:25 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Web services using common complex
types
Message-ID: <1959002.1207902265515.JavaMail.jboss@colo-br-02.atl.jboss.com>
I am having the same problem here and have resorted to convert the complex object (POJO_C in your example) into a byte[] which, of course, discards all information about it actually being a POJO_C type of object.
IMHO, this is a big downside, but I have been unable to find a better solution.
-Stathis
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143388#4143388
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143388
From do-not-reply at jboss.com Fri Apr 11 05:29:41 2008
From: do-not-reply at jboss.com (thomas.diesler@jboss.com)
Date: Fri, 11 Apr 2008 05:29:41 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Web services using common complex
types
Message-ID: <22696967.1207906181048.JavaMail.jboss@colo-br-02.atl.jboss.com>
You can use JAXB binding customizations to map package names to namespaces
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143403#4143403
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143403
From do-not-reply at jboss.com Fri Apr 11 05:39:42 2008
From: do-not-reply at jboss.com (thomas.diesler@jboss.com)
Date: Fri, 11 Apr 2008 05:39:42 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Get involved with community
contributions
Message-ID: <9811376.1207906782312.JavaMail.jboss@colo-br-02.atl.jboss.com>
Folks, if you want to get involved have a look at these issues
http://jira.jboss.org/jira/secure/IssueNavigator.jspa?reset=true&mode=hide&sorter/order=DESC&sorter/field=priority&resolution=-1&pid=12310050&fixfor=12311430
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143405#4143405
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143405
From do-not-reply at jboss.com Fri Apr 11 08:27:23 2008
From: do-not-reply at jboss.com (rcarmichael)
Date: Fri, 11 Apr 2008 08:27:23 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Web services using common complex
types
Message-ID: <8293869.1207916843632.JavaMail.jboss@colo-br-02.atl.jboss.com>
Thanks for confirming the fact that customizations is the way to go Thomas, I just wanted to see if there was an easier way. It would seem like I should be able to provide a namespace for POJO_C so that this could be done automatically, but I can handle the manual way. Thanks again!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143430#4143430
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143430
From do-not-reply at jboss.com Fri Apr 11 10:19:36 2008
From: do-not-reply at jboss.com (boniek)
Date: Fri, 11 Apr 2008 10:19:36 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Limiting number of connections per
WebService
Message-ID: <19765781.1207923576218.JavaMail.jboss@colo-br-02.atl.jboss.com>
Yes I know about this, but this will not limit connections per WebService endpoint, but for all WebServices deployed on this particular instance of Tomcat. Let's say I have 2 WebService endpoints and I want max of 10 simultaneous connections to one of them and max of 100 to the other one. Is it possible to do?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143452#4143452
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143452
From do-not-reply at jboss.com Fri Apr 11 11:09:23 2008
From: do-not-reply at jboss.com (rcarmichael)
Date: Fri, 11 Apr 2008 11:09:23 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Web services using common complex
types
Message-ID: <21467111.1207926563889.JavaMail.jboss@colo-br-02.atl.jboss.com>
Just to update, I figured out that if I specify @XmlType(namespace="...") on my @Entitys that the web services are using, wsimport (if you don't use the -p option) would do what I want for me without having to specify JAXB customization files.
I still think that it would be neat if I could somehow annotate that I want specific classes to be packaged into an XSD and then referenced from the WSDL. Then multiple WSDLs share a common XSD. I'm sure this is possible if you're starting from WSDLs and generating java classes, but in my case I'm starting with POJO @Entities and @Webservices, JBoss is generating the WSDL, then I'm using wsimport to generate client stubs.
Anyway, what I mentioned is probably not a JBoss feature request, more of a JAXWS request. Thanks again for the replies. If anyone knows how to do this "common XSD" thing from simple annotations already, I'd love to know.
-Ryan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143463#4143463
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143463
From do-not-reply at jboss.com Fri Apr 11 12:12:25 2008
From: do-not-reply at jboss.com (thomas.diesler@jboss.com)
Date: Fri, 11 Apr 2008 12:12:25 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Limiting number of connections per
WebService
Message-ID: <27842567.1207930345952.JavaMail.jboss@colo-br-02.atl.jboss.com>
This is not yet supported. You could create a jira feature request for it and reference it from here.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143480#4143480
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143480
From do-not-reply at jboss.com Fri Apr 11 12:24:50 2008
From: do-not-reply at jboss.com (pramod_bs)
Date: Fri, 11 Apr 2008 12:24:50 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - WS-Security question
Message-ID: <23498640.1207931090835.JavaMail.jboss@colo-br-02.atl.jboss.com>
I implemented WS-Security for Usernametoken authentication for an EJB3 bean. Everything is working fine. But I noticed that when I send the SOAP envelope with just a wsse:security header (without any child elements) , the system allowed to invoke the service (No authentication happened). Is there a bug in there?
Code is same as the post here: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=131719
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143483#4143483
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143483
From do-not-reply at jboss.com Fri Apr 11 18:50:43 2008
From: do-not-reply at jboss.com (raags)
Date: Fri, 11 Apr 2008 18:50:43 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - @WebContext
Message-ID: <25575301.1207954243519.JavaMail.jboss@colo-br-02.atl.jboss.com>
I'm migrating from JBoss4.2 to JBoss 5.0 and I noticed the @WebContext annotation is no longer in jbossws-core.jar. Where can I find it in JBoss 5.0?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143578#4143578
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143578
From do-not-reply at jboss.com Fri Apr 11 20:03:17 2008
From: do-not-reply at jboss.com (raags)
Date: Fri, 11 Apr 2008 20:03:17 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Wierd error "Adding text to an XML
document must not null"
Message-ID: <13066791.1207958597621.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi, I'm trying out JBoss 5.0 for the first time and my simple helloworld webservice when deployed gives this error:
16:55:24,425 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
16:55:24,940 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of
incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
*** CONTEXTS IN ERROR: Name -> Error
vfsfile:/C:/systestjboss/jboss-5.0.0.Beta3/server/default/deploy/helloworld5.jar
-> java.lang.IllegalArgumentException: Adding text to an XML document must not
be null
vfsfile:/C:/systestjboss/jboss-5.0.0.Beta3/server/default/deploy/hellowebservice
.jar -> java.lang.IllegalArgumentException: Adding text to an XML document must
not be null
16:55:25,003 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
080
16:55:25,081 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
16:55:25,081 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta3 (build: SVNT
ag=JBoss_5_0_0_Beta3 date=200712210026)] Started in 1m:10s:296ms
How can I solve this?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143590#4143590
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143590
From do-not-reply at jboss.com Fri Apr 11 20:21:28 2008
From: do-not-reply at jboss.com (raags)
Date: Fri, 11 Apr 2008 20:21:28 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: @WebContext
Message-ID: <21544874.1207959688411.JavaMail.jboss@colo-br-02.atl.jboss.com>
Ok found it.. jbossws-spi.jar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143594#4143594
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143594
From do-not-reply at jboss.com Sat Apr 12 02:42:36 2008
From: do-not-reply at jboss.com (ericmacau)
Date: Sat, 12 Apr 2008 02:42:36 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Native or Metro ?
Message-ID: <12944712.1207982557111.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hello,
What's the different between Native and Metro?
Best regards,
Eric
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143618#4143618
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143618
From do-not-reply at jboss.com Sun Apr 13 09:12:51 2008
From: do-not-reply at jboss.com (thoste)
Date: Sun, 13 Apr 2008 09:12:51 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Error: "package javax.jws does not
exist" ? Missing jar?
Message-ID: <1953010.1208092372693.JavaMail.jboss@colo-br-02.atl.jboss.com>
When I try to compile a web service with java 1.5 by
javac ProfileMgmtBean.java
I am getting the following error:
import javax.jws.WebService;
^
ProfileMgmtBean.java:6: package javax.jws does not exist
Do I have to add (Which?) jar files to the CLASSPATH ?
Thomas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143705#4143705
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143705
From do-not-reply at jboss.com Sun Apr 13 09:25:59 2008
From: do-not-reply at jboss.com (thoste)
Date: Sun, 13 Apr 2008 09:25:59 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - How to package a web app into a .war
file?
Message-ID: <25432570.1208093159263.JavaMail.jboss@colo-br-02.atl.jboss.com>
The JBoss user guide shows in the section
http://jbws.dyndns.org/mediawiki/index.php?title=User_Guide#Plain_old_Java_Object_.28POJO.29
a POJO endpoint implementation.
After the web.xml source it is said:
"A JSR-181 java service endpoint (JSE) is packaged as a web application in a *.war file."
How is this done practically?
Do I have to add the compiled web service java class and web.xml into a jar archive ?
How does this look like in detail ?
Thomas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143706#4143706
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143706
From do-not-reply at jboss.com Sun Apr 13 09:48:35 2008
From: do-not-reply at jboss.com (thoste)
Date: Sun, 13 Apr 2008 09:48:35 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web
service files in JBoss ?
Message-ID: <15692459.1208094515104.JavaMail.jboss@colo-br-02.atl.jboss.com>
anonymous wrote :
| In the web.xml have a serlvet entry.
| You can use the session bean.
Which web.xml do you mean?
server\default\deploy\jboss-web.deployer\conf\web.xml
or
server\default\deploy\jbossws.sar\jbossws-context.war\WEB-INF\web.xml
or
another?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143710#4143710
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143710
From do-not-reply at jboss.com Sun Apr 13 13:20:24 2008
From: do-not-reply at jboss.com (gaurishjboss)
Date: Sun, 13 Apr 2008 13:20:24 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - problem with wsconsume
Message-ID: <26763837.1208107224214.JavaMail.jboss@colo-br-02.atl.jboss.com>
i m new to jboss web services and currently using the jboss3.0.1 -native 2.0.4GA version of jbossws.....i succesfully deployed my web service n the jboss application server 4.2.1GA....but when i try to generate the client stubs using wsconsume.bat it gives me an error as follows :
C:\Documents and Settings\A\Desktop\jbossws-3.0.1-native-2.0.4.GA\jbossws-native
-dist\deploy\bin>wsconsume.bat -k -o C:\Documents and Settings\A\Desktop\jbosswe
bservice http://127.0.0.1:8080/NewHAws/Ws?wsdl
JBossWS-Metro stack deployed
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/wsf/spi/too
ls/cmd/WSConsume
do i need to include any jar files anywhere.....????
if so then how do i do it..????
and my implementation version shows Native but it shows JbossWS-Metro deployed....
please help me out....its really very urgent.....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143725#4143725
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143725
From do-not-reply at jboss.com Sun Apr 13 19:10:33 2008
From: do-not-reply at jboss.com (anacarda)
Date: Sun, 13 Apr 2008 19:10:33 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Obtain SOAP attachment from
PostMethod
Message-ID: <32667827.1208128233915.JavaMail.jboss@colo-br-02.atl.jboss.com>
How can I get the MessageContext from an InputStream though?
The InputStream I am talking about is the one from the call from loPostMethod.getResponseBodyAsStream()...
This is because I am using a PostMethod to call / obtain the raw message back.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143745#4143745
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143745
From do-not-reply at jboss.com Mon Apr 14 02:55:26 2008
From: do-not-reply at jboss.com (ljgp)
Date: Mon, 14 Apr 2008 02:55:26 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: No tests for @SchemaValidation
annotation in 3.0.1 ?
Message-ID: <24153609.1208156126075.JavaMail.jboss@colo-br-02.atl.jboss.com>
Thanks !
Luc.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143766#4143766
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143766
From do-not-reply at jboss.com Mon Apr 14 02:59:45 2008
From: do-not-reply at jboss.com (gaurishjboss)
Date: Mon, 14 Apr 2008 02:59:45 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - problem with wsconsume
Message-ID: <24069712.1208156385361.JavaMail.jboss@colo-br-02.atl.jboss.com>
C:\Documents and Settings\A\Desktop\java project\jboss-4.2.1.GA\bin>wsconsume -
k -o C:\clistubs http://127.0.0.1:8080/NewHAws/Ws?wsdl
JBossWS-Metro stack deployed
Exception in thread "main" java.lang.IllegalStateException: Failed to load: org.
jboss.ws.tools.jaxws.impl.SunRIConsumerFactoryImpl
at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:2
05)
at org.jboss.wsf.spi.util.ServiceLoader.loadFromSystemProperty(ServiceLo
ader.java:138)
at org.jboss.wsf.spi.util.ServiceLoader.loadService(ServiceLoader.java:6
8)
at org.jboss.wsf.spi.tools.WSContractConsumer.newInstance(WSContractCons
umer.java:72)
at org.jboss.wsf.spi.tools.WSContractConsumer.newInstance(WSContractCons
umer.java:56)
at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:1
95)
at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81)
Caused by: java.lang.ClassNotFoundException: org.jboss.ws.tools.jaxws.impl.SunRI
ConsumerFactoryImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:2
00)
... 6 more
C:\Documents and Settings\A\Desktop\java project\jboss-4.2.1.GA\bin>
i am workign with jboss4.2.1GA and jbossws-3.0.1-native-2.0.4.GA...
but i m getting this problem while running wsconsume......can anyone please help me out..????
its really very urgent.....would appreciate ur help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143767#4143767
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143767
From do-not-reply at jboss.com Mon Apr 14 03:16:19 2008
From: do-not-reply at jboss.com (ljgp)
Date: Mon, 14 Apr 2008 03:16:19 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: No tests for @SchemaValidation
annotation in 3.0.1 ?
Message-ID: <10377619.1208157379938.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi Thomas,
I am probably overlooking something, because I cannot find a proper test for the @SchemaValidation annotation.
There are two endpoint classes, org.jboss.test.ws.jaxws.jbws1172.ValidatingEndpoint.java and NonValidatingEndpoint.java
The annotation processor processes the @SchemaValidation annotation by adding the relevant feature to the endpoint.
However, in JBWS1172TestCase.java, the testcases ignore the defined endpoints, and instead add the validating feature to endpoints defined in the testcode. So, to me it seems the handling of the @SchemaValidation annotation is not tested here. Is there another test for this maybe ?
Cheers, Luc.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143773#4143773
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143773
From do-not-reply at jboss.com Mon Apr 14 03:53:55 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Mon, 14 Apr 2008 03:53:55 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Wierd error
Message-ID: <27044843.1208159635064.JavaMail.jboss@colo-br-02.atl.jboss.com>
Download JBoss AS 5 Beta 4. We tested our web services stack on it. AS 5 Beta 3 is unsupported
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143787#4143787
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143787
From do-not-reply at jboss.com Mon Apr 14 03:58:19 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Mon, 14 Apr 2008 03:58:19 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Native or Metro ?
Message-ID: <16713676.1208159899358.JavaMail.jboss@colo-br-02.atl.jboss.com>
See
http://jbws.dyndns.org/mediawiki/index.php?title=WSF
There's a picture and the following are synonymous:
Metro = Glassfish Metro = sunri = Sun JAX-WS
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143788#4143788
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143788
From do-not-reply at jboss.com Mon Apr 14 04:00:15 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Mon, 14 Apr 2008 04:00:15 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Error:
Message-ID: <7446809.1208160015715.JavaMail.jboss@colo-br-02.atl.jboss.com>
jsr181-api.jar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143791#4143791
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143791
From do-not-reply at jboss.com Mon Apr 14 04:01:14 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Mon, 14 Apr 2008 04:01:14 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: How to package a web app into a
.war file?
Message-ID: <28356679.1208160074339.JavaMail.jboss@colo-br-02.atl.jboss.com>
Download our source distribution and take a look to samples ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143792#4143792
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143792
From do-not-reply at jboss.com Mon Apr 14 04:03:58 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Mon, 14 Apr 2008 04:03:58 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web
service files in JBoss ?
Message-ID: <4261063.1208160238409.JavaMail.jboss@colo-br-02.atl.jboss.com>
Please, read our documentation first.
If still confused download source distribution and try to find the example that fits your needs.
If still confused post to user forum ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143793#4143793
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143793
From do-not-reply at jboss.com Mon Apr 14 04:06:13 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Mon, 14 Apr 2008 04:06:13 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: problem with wsconsume
Message-ID: <5171463.1208160373665.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
your problem will be that you have installed jboss into directory which contains spaces in its name. It usually causes a lot of problems. Please install jboss into directory that has no spaces in its name.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143794#4143794
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143794
From do-not-reply at jboss.com Mon Apr 14 04:08:01 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Mon, 14 Apr 2008 04:08:01 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: problem with wsconsume
Message-ID: <6424764.1208160481946.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
your problem will be that you have installed jboss into directory which contains spaces in its name. It usually causes a lot of problems. Please install jboss into directory that has no spaces in its name.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143795#4143795
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143795
From do-not-reply at jboss.com Mon Apr 14 04:08:58 2008
From: do-not-reply at jboss.com (ljgp)
Date: Mon, 14 Apr 2008 04:08:58 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: No tests for @SchemaValidation
annotation in 3.0.1 ?
Message-ID: <31122822.1208160538520.JavaMail.jboss@colo-br-02.atl.jboss.com>
Another sign that I am probably missing something: In the jaxws source I cannot find any reference to the class
SchemaValidationFeature
of which an instance is added to the endpoint (except in the processor doing this). So looking at the source I have here (which must be incomplete) it seems it is added to the endpoint but never used.
Cheers, Luc.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143796#4143796
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143796
From do-not-reply at jboss.com Mon Apr 14 04:12:31 2008
From: do-not-reply at jboss.com (ljgp)
Date: Mon, 14 Apr 2008 04:12:31 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: No tests for @SchemaValidation
annotation in 3.0.1 ?
Message-ID: <4739158.1208160751053.JavaMail.jboss@colo-br-02.atl.jboss.com>
...never mind, found it. My bad.
The question about where the annotation is tested remains.
Cheers, Luc.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143799#4143799
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143799
From do-not-reply at jboss.com Mon Apr 14 09:38:43 2008
From: do-not-reply at jboss.com (GTWebDev)
Date: Mon, 14 Apr 2008 09:38:43 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Upgrading to 4.2.2 changed
published WSDL
Message-ID: <12262779.1208180323170.JavaMail.jboss@colo-br-02.atl.jboss.com>
We are using the default jbossws version that comes with AS 4.2.2. The exceptions differ depending on the client consuming the services and the method being called. Most of the exceptions are related to NullPointerExceptions due to the differences in the published WSDLs. Some Web methods may not produce errors, but don't produce results due to the schema changes as well.
Most of the WSDL changes have to do with differences in Namespaces produced by JBOSS. I've tried included package-info that explicitly defines the XmlSchema to closely match the published WSDL, but so far it seems that the only thing I can do for the client apps that consume the services is to re-create the proxies so they have the new definitions.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143902#4143902
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143902
From do-not-reply at jboss.com Mon Apr 14 11:40:56 2008
From: do-not-reply at jboss.com (PeterJ)
Date: Mon, 14 Apr 2008 11:40:56 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Wierd error
Message-ID: <3415400.1208187656071.JavaMail.jboss@colo-br-02.atl.jboss.com>
Also notice this part of the output you posted:
anonymous wrote : (SEE PREVIOUS ERRORS FOR DETAILS):
What you posted is a summary of things that did not deploy. Earlier in the console output there should be an exception stack trace that provides details about what went wrong. You will need to post that (if you run into the problem using beta4).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143971#4143971
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143971
From do-not-reply at jboss.com Mon Apr 14 17:49:45 2008
From: do-not-reply at jboss.com (niwa_java)
Date: Mon, 14 Apr 2008 17:49:45 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - running jax-ws web service on jboss
4.0.1
Message-ID: <19910485.1208209785105.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
We have a J2EE application deployed on JBoss4.0.1. I need to call a 'document' style web service from this application. I have the client classes but I cannot access the web service. Do I need to install any jboss ws patch?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144076#4144076
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144076
From do-not-reply at jboss.com Tue Apr 15 01:56:33 2008
From: do-not-reply at jboss.com (enjuto)
Date: Tue, 15 Apr 2008 01:56:33 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Launch web services when starting JBOSS
Message-ID: <30190395.1208238993080.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hello,
I have a timer created into a web service class constructor, and I'd like this constructor was called at the start of the JBOSS execution. Is there any way to make this ?
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144116#4144116
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144116
From do-not-reply at jboss.com Tue Apr 15 02:14:00 2008
From: do-not-reply at jboss.com (oskar.carlstedt)
Date: Tue, 15 Apr 2008 02:14:00 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Upgrading to 4.2.2 changed
published WSDL
Message-ID: <8565720.1208240040623.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hello!
Sorry to say, but this may be a hard working lesson to never go for the "code first" approach when creating web services which contracts shall be persistent over time and over different application servers. So a tip for future development, write your wsdl and included schemas by hand and then generate code from that (that's what we call "contract first").
Ok, now the good thing. You can always save your old published wsdl file and generate code from that. It will work for you.
Kind regards
/Oskar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144123#4144123
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144123
From do-not-reply at jboss.com Tue Apr 15 04:40:22 2008
From: do-not-reply at jboss.com (hekeji)
Date: Tue, 15 Apr 2008 04:40:22 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Generate WSDL (From JBoss Eclipse
IDE or Command line)
Message-ID: <9945384.1208248822290.JavaMail.jboss@colo-br-02.atl.jboss.com>
I am search the way how to slove it..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144155#4144155
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144155
From do-not-reply at jboss.com Tue Apr 15 06:30:25 2008
From: do-not-reply at jboss.com (aneesh62003)
Date: Tue, 15 Apr 2008 06:30:25 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Post subject:
ConfigurationException:axis.deployment.wsdd.WS
Message-ID: <25709109.1208255425822.JavaMail.jboss@colo-br-02.atl.jboss.com>
WE are having a webservice client in our application.
During the deplyment time we are facing an issue.
Our jboss version is. Jboss 4.02 Rc1
Axis version. Implementation-Version: 1.2RC3 2236 February 28 2005
we have put the jboss-net-client.jar in the lib path from the docs
Now we are getting a Classcastexception while trying to create a call to the webservice.
ExceptionStrackTrace is as shown below.
org.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassCastException
java.lang.ClassCastException
at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerFactory.java:261)
at org.apache.axis.deployment.wsdd.WSDDDeployment.deployMapping(WSDDDeployment.java:341)
at org.apache.axis.deployment.wsdd.WSDDDeployment.getTypeMappingRegistry(WSDDDeployment.java:520)
at org.apache.axis.configuration.FileProvider.getTypeMappingRegistry(FileProvider.java:292)
at org.apache.axis.AxisEngine.getTypeMappingRegistry(AxisEngine.java:359)
at org.apache.axis.MessageContext.getTypeMappingRegistry(MessageContext.java:452)
at org.apache.axis.client.Call.getTypeMapping(Call.java:2156)
at org.apache.axis.client.Call.registerTypeMapping(Call.java:2191)
at org.apache.axis.client.Call.registerTypeMapping(Call.java:2234)
at com.eppsClient.ShowPPCWSBindingStub.createCall(Unknown Source)
at com.eppsClient.ShowPPCWSBindingStub.showPPC(Unknown Source)
at com.eppsClient.ShowPPCWSClient.getBalance(Unknown Source)
at com.epps.FrontController.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:147)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:53)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:743)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
at org.apache.axis.deployment.wsdd.WSDDDeployment.deployMapping(WSDDDeployment.java:360)
at org.apache.axis.deployment.wsdd.WSDDDeployment.getTypeMappingRegistry(WSDDDeployment.java:520)
at org.apache.axis.configuration.FileProvider.getTypeMappingRegistry(FileProvider.java:292)
at org.apache.axis.AxisEngine.getTypeMappingRegistry(AxisEngine.java:359)
at org.apache.axis.MessageContext.getTypeMappingRegistry(MessageContext.java:452)
at org.apache.axis.client.Call.getTypeMapping(Call.java:2156)
at org.apache.axis.client.Call.registerTypeMapping(Call.java:2191)
at org.apache.axis.client.Call.registerTypeMapping(Call.java:2234)
at com.eppsClient.ShowPPCWSBindingStub.createCall(Unknown Source)
at com.eppsClient.ShowPPCWSBindingStub.showPPC(Unknown Source)
at com.eppsClient.ShowPPCWSClient.getBalance(Unknown Source)
at com.epps.FrontController.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:147)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:53)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:743)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
at org.apache.axis.deployment.wsdd.WSDDDeployment.deployMapping(WSDDDeployment.java:360)
at org.apache.axis.deployment.wsdd.WSDDDeployment.getTypeMappingRegistry(WSDDDeployment.java:520)
at org.apache.axis.configuration.FileProvider.getTypeMappingRegistry(FileProvider.java:292)
at org.apache.axis.AxisEngine.getTypeMappingRegistry(AxisEngine.java:359)
at org.apache.axis.MessageContext.getTypeMappingRegistry(MessageContext.java:452)
at org.apache.axis.client.Call.getTypeMapping(Call.java:2156)
at org.apache.axis.client.Call.registerTypeMapping(Call.java:2191)
at org.apache.axis.client.Call.registerTypeMapping(Call.java:2234)
at com.eppsClient.ShowPPCWSBindingStub.createCall(Unknown Source)
at com.eppsClient.ShowPPCWSBindingStub.showPPC(Unknown Source)
at com.eppsClient.ShowPPCWSClient.getBalance(Unknown Source)
at com.epps.FrontController.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:147)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:53)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:743)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
2008-04-15 14:00:14,321 ERROR [com.epps.FrontController] PPC Inquiry Unknown Exception
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: Failure trying to get the Call object; nested exception is:
java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
Failure trying to get the Call object; nested exception is:
java.lang.NullPointerException
at com.eppsClient.ShowPPCWSBindingStub.createCall(Unknown Source)
at com.eppsClient.ShowPPCWSBindingStub.showPPC(Unknown Source)
at com.eppsClient.ShowPPCWSClient.getBalance(Unknown Source)
Expecting ur help..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144182#4144182
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144182
From do-not-reply at jboss.com Tue Apr 15 07:20:57 2008
From: do-not-reply at jboss.com (darran.lofthouse@jboss.com)
Date: Tue, 15 Apr 2008 07:20:57 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: WS-Security - Invalid timestamp,
message claimed to be c
Message-ID: <19381490.1208258457447.JavaMail.jboss@colo-br-02.atl.jboss.com>
This is now committed and ready to be included in JBossWS 3.0.2.
The configuration options are described here: -
http://jbws.dyndns.org/mediawiki/index.php?title=WS-Security_options#Advanced_tuning:_timestamp_verification
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144197#4144197
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144197
From do-not-reply at jboss.com Tue Apr 15 10:15:17 2008
From: do-not-reply at jboss.com (regget)
Date: Tue, 15 Apr 2008 10:15:17 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Wsconsume and inner classes
Message-ID: <31378055.1208268917688.JavaMail.jboss@colo-br-02.atl.jboss.com>
Is there a way to have wsconsume tool not generate inner classes?
I have been playing around with jax-b bindings but have not gotten it to work.
An example of my problem:
xsd:
...
...
wsconsume generates an A class with a B inner class in A.
I need B.class and A.class.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144230#4144230
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144230
From do-not-reply at jboss.com Tue Apr 15 10:32:48 2008
From: do-not-reply at jboss.com (smartz)
Date: Tue, 15 Apr 2008 10:32:48 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: NullPointerException from
JBossXSEntityResolver
Message-ID: <33503120.1208269968571.JavaMail.jboss@colo-br-02.atl.jboss.com>
Using JBossWS out-of-box from 4.2.1-GA or 4.2.2-GA - same problem
Is any workaround available?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144245#4144245
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144245
From do-not-reply at jboss.com Tue Apr 15 21:42:28 2008
From: do-not-reply at jboss.com (gothmog)
Date: Tue, 15 Apr 2008 21:42:28 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Can not find truststore url
Message-ID: <16236474.1208310148858.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
Just got first web service working but I get the following error:
13:35:04,155 ERROR [HTTPClientInvoker] Error creating SSL Socket Factory for client invoker.
java.io.IOException: Error initializing socket factory SSL context: Can not find truststore url.
The service call still happens, but I guess this has something to do with SSL configuration on the server? given my url is: https://www.paymentexpress.com/WS/PXWS.asmx?WSDL
Jboss: 4.2.2.GA
JbossWS: 3.0.1-native-2.0.4.GA
Any help appreciated
Thanks
Troy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144363#4144363
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144363
From do-not-reply at jboss.com Tue Apr 15 19:49:51 2008
From: do-not-reply at jboss.com (jttjunk)
Date: Tue, 15 Apr 2008 19:49:51 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Using (Hash)Map in wrapper class
Message-ID: <15594739.1208303391798.JavaMail.jboss@colo-br-02.atl.jboss.com>
Currently I'm not using Java let alone JBoss. I'm afraid I can't help you. Good luck!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144355#4144355
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144355
From do-not-reply at jboss.com Tue Apr 15 19:22:09 2008
From: do-not-reply at jboss.com (asouza_2000)
Date: Tue, 15 Apr 2008 19:22:09 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Using (Hash)Map in wrapper class
Message-ID: <16553577.1208301729679.JavaMail.jboss@colo-br-02.atl.jboss.com>
It still doesn't work for me... even using a wrapper class.
Any other idea ?
I'm using JAX-WS 2.0.1
Tks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144353#4144353
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144353
From do-not-reply at jboss.com Tue Apr 15 19:16:30 2008
From: do-not-reply at jboss.com (asouza_2000)
Date: Tue, 15 Apr 2008 19:16:30 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Can't use Map or HashMap in JAX-WS
Message-ID: <19478975.1208301390333.JavaMail.jboss@colo-br-02.atl.jboss.com>
I can't use Map or HashMap as a return parameter in my Web Service even if I wrap it in another class.
It keeps raising:
javax.xml.bind.JAXBException: class java.util.HashMap nor any of its super class is known to this context
Isn't Map supposed to be supported by default ?
Can anyone provide me a working example to use Map and HashMap in Web Services (JAX-WS).
Thanks in advance.
Antonio Souza.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144352#4144352
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144352
From do-not-reply at jboss.com Wed Apr 16 01:09:44 2008
From: do-not-reply at jboss.com (bsheward)
Date: Wed, 16 Apr 2008 01:09:44 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Cannot extract schema definition?
Message-ID: <17760881.1208322584567.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
I developed a very simple web service, using wsconsume against a URL for WSDL to create a set of objects, and then the following code:
| public void runQuery( String username, String password, String query) {
| RemoteService service = new RemoteService ();
| RemotePortType rem= service.getRemotePort();
| System.out.println("Server said: " + rem.getRemoteResult( query, username, password));
| }
|
I get an Exception when instantiating the RemoteService:
| Caused by: org.jboss.ws.metadata.wsdl.WSDLException: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Cannot extract schema definition: java.io.IOException: The file
| name, directory name, or volume label syntax is incorrect
| at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:154)
| at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:85)
| at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:131)
| at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61)
| at javax.xml.ws.Service.(Service.java:83)
| at com.mycom.platforms.bf.webclient.RemoteService.(RelevanceService.java:40)
| at com.mycom.platforms.bf.BFRemoteServiceClient.runQuery(BigFixRelevanceServiceClient.java:27)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| ... 39 more
| Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Cannot extract schema definition: java.io.IOException: The filename, directory name, or volume label synt
| ax is incorrect
| at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:384)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:172)
| at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128)
| ... 59 more
| Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
| at java.io.WinNTFileSystem.createFileExclusively(Native Method)
| at java.io.File.checkAndCreate(File.java:1704)
| at java.io.File.createTempFile(File.java:1793)
| at org.jboss.ws.metadata.wsdl.xsd.SchemaUtils.getSchemaTempFile(SchemaUtils.java:535)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.processSchemaInclude(WSDL11Reader.java:529)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:375)
| ... 61 more
|
One potential issue I can think of is that I am calling this web service while in a Session Bean exposed as a web service.
Could anyone give me any other pointers?
Thanks,
Barry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144373#4144373
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144373
From do-not-reply at jboss.com Wed Apr 16 05:17:03 2008
From: do-not-reply at jboss.com (rapowder)
Date: Wed, 16 Apr 2008 05:17:03 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: problem with calling ssl web service
Message-ID: <23821645.1208337424012.JavaMail.jboss@colo-br-02.atl.jboss.com>
Thank you for your quick answer!
However I am not sure to understand what to put in the url-pattern parameter. All my interfaces are accessible through:
https://myserver.com:8443/interfaces/InterfaceBean
I tried just to test with
/interfaces/*
and also specifically with
/interfaces/InterfaceBean1
leaving the jboss-beans.xml file as I posted before, but with no success..
what is it that I have to put in the url-pattern?
Thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144419#4144419
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144419
From do-not-reply at jboss.com Wed Apr 16 04:34:18 2008
From: do-not-reply at jboss.com (rouvas)
Date: Wed, 16 Apr 2008 04:34:18 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: problem with calling ssl web service
Message-ID: <14472031.1208334858768.JavaMail.jboss@colo-br-02.atl.jboss.com>
Place a transport-guarantee element in your web.xml, thus:
|
|
| All resources
| /YOUR_PATH
|
|
| CONFIDENTIAL
|
|
|
in the above replace YOUR_PATH with the appropriate value for your case.
-Stathis
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144405#4144405
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144405
From do-not-reply at jboss.com Wed Apr 16 04:13:34 2008
From: do-not-reply at jboss.com (rapowder)
Date: Wed, 16 Apr 2008 04:13:34 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: problem with calling ssl web service
Message-ID: <11452492.1208333614894.JavaMail.jboss@colo-br-02.atl.jboss.com>
hugo_th02 how did you manage to configure an ssl webservice?
I tried to edit the jboss-beans.xml file at the following lines
${jboss.bind.address}
| true
| 8443
| 8080
in any way, but my WSDL file always generates a sop:adress in http
|
|
|
|
I'd actually like to have
|
I can hardcode www.myserver.com in the webServiceHost parameter, but no way to set https as protocol and port 8443
Any ideas? Please help, it's urgent!
Cheers,
Andrea
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144401#4144401
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144401
From do-not-reply at jboss.com Wed Apr 16 06:51:39 2008
From: do-not-reply at jboss.com (rouvas)
Date: Wed, 16 Apr 2008 06:51:39 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: problem with calling ssl web service
Message-ID: <7934078.1208343099410.JavaMail.jboss@colo-br-02.atl.jboss.com>
You posted that your interfaces are accessible through
| https://myserver.com:8443/interfaces/InterfaceBean
|
but in the url-pattern you stated
| /interfaces/InterfaceBean1
|
see the "1" at the end?
I've managed to get it working using the following settings:
file ${JBOSS_HOME}/server/default/deploy/jboss-web.deployer/server.xml
|
|
and in my web.xml
|
|
|
|
| adder
| gr.rouvas.adder
|
|
| adder
| /adder
|
|
|
|
| All resources
| /adder
|
|
| CONFIDENTIAL
|
|
|
|
|
in my case, it is a POJO web service.
-Stathis
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144437#4144437
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144437
From do-not-reply at jboss.com Wed Apr 16 09:13:35 2008
From: do-not-reply at jboss.com (claudio_br)
Date: Wed, 16 Apr 2008 09:13:35 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Problem consuming .net webservice with
jbossws-3.0.1-native-
Message-ID: <5579298.1208351615331.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
I created the stubs classes of .net webservice using ant task:
org.jboss.wsf.spi.tools.ant.WSConsumeTask
But when I invoke the .net webservice I got:
javax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message
| Exception in thread "main" javax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message
| at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:404)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:314)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
| at $Proxy15.getToken(Unknown Source)
| at teste.Teste.getXY(Teste.java:26)
| at teste.Teste.main(Teste.java:73)
| Caused by: java.io.IOException: Could not transmit message
| at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:255)
| at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:73)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:339)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
| ... 5 more
| Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:333)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.Client.invoke(Client.java:1634)
| at org.jboss.remoting.Client.invoke(Client.java:548)
| at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:233)
| ... 8 more
| Caused by: org.jboss.ws.WSException: Invalid HTTP server response [501] - Not Implemented
| at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:77)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:473)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:305)
| ... 13 more
With the release jbossws 2.0.0.GA the calls are made successfully.
Please, help me.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144471#4144471
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144471
From do-not-reply at jboss.com Wed Apr 16 10:08:42 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Wed, 16 Apr 2008 10:08:42 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <16324034.1208354922039.JavaMail.jboss@colo-br-02.atl.jboss.com>
Could you post exchanged messages?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144501#4144501
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144501
From do-not-reply at jboss.com Wed Apr 16 10:50:54 2008
From: do-not-reply at jboss.com (claudio_br)
Date: Wed, 16 Apr 2008 10:50:54 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <19642354.1208357454965.JavaMail.jboss@colo-br-02.atl.jboss.com>
How can I do this?
Please, show me a sample code.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144518#4144518
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144518
From do-not-reply at jboss.com Wed Apr 16 11:17:25 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Wed, 16 Apr 2008 11:17:25 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <11314321.1208359045940.JavaMail.jboss@colo-br-02.atl.jboss.com>
Use wireshark
http://www.wireshark.org/
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144534#4144534
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144534
From do-not-reply at jboss.com Wed Apr 16 12:28:08 2008
From: do-not-reply at jboss.com (claudio_br)
Date: Wed, 16 Apr 2008 12:28:08 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <5828242.1208363288272.JavaMail.jboss@colo-br-02.atl.jboss.com>
I added the log4j with DEBUG level:
16/04/2008 13:21:03 org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder - START buildMetaData: [service={http://webservices.maplink2.com.br}Authentication]
| 16/04/2008 13:21:03 org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory - parse: http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx?WSDL
| 16/04/2008 13:21:04 org.jboss.wsf.framework.DefaultSPIProvider - provide SPI 'class org.jboss.wsf.spi.management.ServerConfigFactory'
| 16/04/2008 13:21:04 org.jboss.wsf.framework.DefaultSPIProvider - class org.jboss.wsf.spi.management.ServerConfigFactory Implementation: org.jboss.wsf.framework.management.ServerConfigFactoryImpl at 1a06e38
| 16/04/2008 13:21:04 org.jboss.ws.tools.JavaToXSD - Load schema: http://webservices.maplink2.com.br=file:/C:/DOCUME~1/claudior/CONFIG~1/Temp/JBossWS_webservices.maplink2.com.br52730.xsd
| 16/04/2008 13:21:04 org.jboss.ws.core.utils.JBossWSEntityResolver - resolveEntity: [pub=null,sysid=file:/C:/DOCUME~1/claudior/CONFIG~1/Temp/JBossWS_webservices.maplink2.com.br52730.xsd]
| 16/04/2008 13:21:04 org.jboss.ws.core.utils.JBossWSEntityResolver - resolveEntity: [pub=http://schemas.xmlsoap.org/soap/encoding/,sysid=null]
| 16/04/2008 13:21:05 org.jboss.ws.metadata.wsdl.WSDLDefinitions - Multiple WSDL bindings referrence the same interface: {http://webservices.maplink2.com.br}AuthenticationSoap
| 16/04/2008 13:21:05 org.jboss.ws.metadata.wsdl.WSDLDefinitions - Multiple WSDL bindings referrence the same interface: {http://webservices.maplink2.com.br}AuthenticationSoap
| 16/04/2008 13:21:05 org.jboss.ws.metadata.wsdl.WSDLDefinitions - Multiple WSDL bindings referrence the same interface: {http://webservices.maplink2.com.br}AuthenticationSoap
| 16/04/2008 13:21:05 org.jboss.ws.metadata.wsdl.WSDLDefinitions - Multiple WSDL bindings referrence the same interface: {http://webservices.maplink2.com.br}AuthenticationSoap
| 16/04/2008 13:21:05 org.jboss.ws.metadata.wsdl.WSDLDefinitions - Multiple WSDL bindings referrence the same interface: {http://webservices.maplink2.com.br}AuthenticationSoap
| 16/04/2008 13:21:05 org.jboss.ws.metadata.wsdl.WSDLDefinitions - Multiple WSDL bindings referrence the same interface: {http://webservices.maplink2.com.br}AuthenticationSoap
| 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Using default parameter style: WRAPPED
| 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Using default parameter style: WRAPPED
| 16/04/2008 13:21:05 org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder - END buildMetaData:
| UnifiedMetaData:
| implementation: jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
| deploymentName: null
| securityDomain: null
|
| ServiceMetaData:
| qname={http://webservices.maplink2.com.br}Authentication
| refName=null
| wsdName=null
| wsdlFile=null
| wsdlLocation=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx?WSDL
| jaxrpcMapping=null
| publishLocation=null
| securityConfig=null
| properties=null
|
| TypesMetaData:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ClientEndpointMetaData:
| type=JAXWS
| qname={http://webservices.maplink2.com.br}AuthenticationSoap
| address=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx
| binding=http://www.w3.org/2003/05/soap/bindings/HTTP/
| seiName=null
| configFile=META-INF/standard-jaxws-client-config.xml
| configName=Standard Client
| authMethod=null
| properties={}
|
| OperationMetaData:
| qname={http://webservices.maplink2.com.br}getToken
| javaName={http://webservices.maplink2.com.br}getToken
| style=document/literal/WRAPPED
| oneWay=false
| soapAction=http://webservices.maplink2.com.br/getToken
| ClientEndpointMetaData:
| type=JAXWS
| qname={http://webservices.maplink2.com.br}AuthenticationSoap12
| address=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx
| binding=http://www.w3.org/2003/05/soap/bindings/HTTP/
| seiName=null
| configFile=META-INF/standard-jaxws-client-config.xml
| configName=Standard Client
| authMethod=null
| properties={}
|
| OperationMetaData:
| qname={http://webservices.maplink2.com.br}getToken
| javaName={http://webservices.maplink2.com.br}getToken
| style=document/literal/WRAPPED
| oneWay=false
| soapAction=http://webservices.maplink2.com.br/getToken
| 16/04/2008 13:21:05 org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder - START: rebuildMetaData
| 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - setParameterStyle: null
| 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Create new config [name=Standard Client,file=META-INF/standard-jaxws-client-config.xml]
| 16/04/2008 13:21:05 org.jboss.ws.metadata.config.JBossWSConfigFactory - getConfig: [name=Standard Client,url=META-INF/standard-jaxws-client-config.xml]
| 16/04/2008 13:21:05 org.jboss.ws.metadata.config.JBossWSConfigFactory - parse: jar:file:/C:/eclipse/workspace/GeradorWsClient204/lib/jbossws-client.jar!/META-INF/standard-jaxws-client-config.xml
| 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Configure EndpointMetaData
| 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Added 0 PRE handlers
| 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Added 0 ENDPOINT handlers
| 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Added 0 POST handlers
| 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - setParameterStyle: WRAPPED
| 16/04/2008 13:21:05 org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder - JAXBContext [types=[class ws.maplink.authentication.GetToken, class ws.maplink.authentication.GetTokenResponse],tns=http://webservices.maplink2.com.br]
| 16/04/2008 13:21:06 org.jboss.ws.metadata.umdm.OperationMetaData - Found best matching java method: public abstract java.lang.String ws.maplink.authentication.AuthenticationSoap.getToken(java.lang.String,java.lang.String)
| 16/04/2008 13:21:06 org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder - END: rebuildMetaData
|
| ServiceMetaData:
| qname={http://webservices.maplink2.com.br}Authentication
| refName=null
| wsdName=null
| wsdlFile=null
| wsdlLocation=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx?WSDL
| jaxrpcMapping=null
| publishLocation=null
| securityConfig=null
| properties=null
|
| TypesMetaData:
| [complexType={http://webservices.maplink2.com.br}getToken,javaType=ws.maplink.authentication.GetToken]
| [complexType={http://webservices.maplink2.com.br}getTokenResponse,javaType=ws.maplink.authentication.GetTokenResponse]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ClientEndpointMetaData:
| type=JAXWS
| qname={http://webservices.maplink2.com.br}AuthenticationSoap
| address=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx
| binding=http://www.w3.org/2003/05/soap/bindings/HTTP/
| seiName=ws.maplink.authentication.AuthenticationSoap
| configFile=META-INF/standard-jaxws-client-config.xml
| configName=Standard Client
| authMethod=null
| properties={}
|
| OperationMetaData:
| qname={http://webservices.maplink2.com.br}getToken
| javaName=getToken
| style=document/literal/WRAPPED
| oneWay=false
| soapAction=http://webservices.maplink2.com.br/getToken
| ParameterMetaData:
| xmlName={http://webservices.maplink2.com.br}getToken
| partName=getToken
| xmlType={http://webservices.maplink2.com.br}getToken
| javaType=ws.maplink.authentication.GetToken
| mode=IN
| inHeader=false
| index=0
| wrappedParameters=[[name = {http://webservices.maplink2.com.br}user, type = java.lang.String, typeArgs = null, variable = user, index = 0], [name = {http://webservices.maplink2.com.br}pwd, type = java.lang.String, typeArgs = null, variable = pwd, index = 1]]
| ReturnMetaData:
| xmlName={http://webservices.maplink2.com.br}getTokenResponse
| partName=getTokenResponse
| xmlType={http://webservices.maplink2.com.br}getTokenResponse
| javaType=ws.maplink.authentication.GetTokenResponse
| mode=OUT
| inHeader=false
| index=-1
| wrappedParameters=[[name = {http://webservices.maplink2.com.br}getTokenResult, type = java.lang.String, typeArgs = null, variable = getTokenResult, index = -1]]
| ClientEndpointMetaData:
| type=JAXWS
| qname={http://webservices.maplink2.com.br}AuthenticationSoap12
| address=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx
| binding=http://www.w3.org/2003/05/soap/bindings/HTTP/
| seiName=null
| configFile=META-INF/standard-jaxws-client-config.xml
| configName=Standard Client
| authMethod=null
| properties={}
|
| OperationMetaData:
| qname={http://webservices.maplink2.com.br}getToken
| javaName={http://webservices.maplink2.com.br}getToken
| style=document/literal/WRAPPED
| oneWay=false
| soapAction=http://webservices.maplink2.com.br/getToken
| 16/04/2008 13:21:06 org.jboss.ws.metadata.umdm.EndpointMetaData - Configure SOAPBinding
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerResolverImpl - initHandlerChain: PRE
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerResolverImpl - initHandlerChain: ENDPOINT
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerResolverImpl - initHandlerChain: POST
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerResolverImpl - getHandlerChain: [type=PRE,info=[service={http://webservices.maplink2.com.br}Authentication,port={http://webservices.maplink2.com.br}AuthenticationSoap,binding=http://www.w3.org/2003/05/soap/bindings/HTTP/]]
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerResolverImpl - getHandlerChain: [type=POST,info=[service={http://webservices.maplink2.com.br}Authentication,port={http://webservices.maplink2.com.br}AuthenticationSoap,binding=http://www.w3.org/2003/05/soap/bindings/HTTP/]]
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerResolverImpl - getHandlerChain: [type=ENDPOINT,info=[service={http://webservices.maplink2.com.br}Authentication,port={http://webservices.maplink2.com.br}AuthenticationSoap,binding=http://www.w3.org/2003/05/soap/bindings/HTTP/]]
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.binding.BindingImpl - setHandlerChain: []
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl - No port configuration for: {http://webservices.maplink2.com.br}AuthenticationSoap
| 16/04/2008 13:21:06 org.jboss.ws.core.soap.MessageContextAssociation - pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at bc5596 (Thread main)
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxrpc.ParameterWrapping - wrapRequestParameters: ws.maplink.authentication.GetToken
| 16/04/2008 13:21:06 org.jboss.ws.core.EndpointInvocation - setRequestParamValue: [name={http://webservices.maplink2.com.br}getToken,value=ws.maplink.authentication.GetToken]
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.binding.SOAP12BindingJAXWS - bindRequestMessage: {http://webservices.maplink2.com.br}getToken
| 16/04/2008 13:21:06 org.jboss.ws.core.EndpointInvocation - getRequestParamValue: {http://webservices.maplink2.com.br}getToken
| 16/04/2008 13:21:06 org.jboss.ws.core.EndpointInvocation - transformPayloadValue: ws.maplink.authentication.GetToken -> ws.maplink.authentication.GetToken
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerChainExecutor - Create a handler executor: []
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerChainExecutor - Create a handler executor: []
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerChainExecutor - Create a handler executor: []
| 16/04/2008 13:21:06 org.jboss.ws.core.client.HTTPRemotingConnection - Get locator for: [addr=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx,props={javax.xml.ws.service.endpoint.address=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx}]
| 16/04/2008 13:21:06 org.jboss.remoting.MicroRemoteClientInvoker - org.jboss.remoting.transport.http.HTTPClientInvoker at 6833f2 connecting
| 16/04/2008 13:21:06 org.jboss.remoting.MicroRemoteClientInvoker - org.jboss.remoting.transport.http.HTTPClientInvoker at 6833f2 connected
| 16/04/2008 13:21:06 org.jboss.ws.core.client.HTTPRemotingConnection - Remoting metadata: {HEADER={SOAPAction="http://webservices.maplink2.com.br/getToken", Content-Type=application/soap+xml; charset=UTF-8}, NoThrowOnError=true}
| 16/04/2008 13:21:06 org.jboss.remoting.transport.http.HTTPClientInvoker - Setting request header with SOAPAction : "http://webservices.maplink2.com.br/getToken"
| 16/04/2008 13:21:06 org.jboss.remoting.transport.http.HTTPClientInvoker - Setting request header with Content-Type : application/soap+xml; charset=UTF-8
| 16/04/2008 13:21:06 org.jboss.ws.core.soap.SOAPContentElement - -----------------------------------
| 16/04/2008 13:21:06 org.jboss.ws.core.soap.SOAPContentElement - Transitioning from OBJECT_VALID to XML_VALID
| 16/04/2008 13:21:06 org.jboss.ws.core.soap.ObjectContent - getXMLFragment from Object [xmlType={http://webservices.maplink2.com.br}getToken,javaType=class ws.maplink.authentication.GetToken]
| 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.JAXBSerializer - serialize: [xmlName={http://webservices.maplink2.com.br}getToken,xmlType={http://webservices.maplink2.com.br}getToken]
| 16/04/2008 13:21:08 org.jboss.ws.core.jaxws.JAXBSerializer - serialized: user password
| 16/04/2008 13:21:08 org.jboss.ws.core.soap.ObjectContent - xmlFragment: [source=user password ]
| 16/04/2008 13:21:08 org.jboss.ws.core.soap.SOAPContentElement - -----------------------------------
| 16/04/2008 13:21:08 org.jboss.remoting.transport.http.HTTPClientInvoker - Error invoking http client invoker.
| org.jboss.ws.WSException: Invalid HTTP server response [501] - Not Implemented
| at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:77)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:473)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:305)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.Client.invoke(Client.java:1634)
| at org.jboss.remoting.Client.invoke(Client.java:548)
| at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:233)
| at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:73)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:339)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
| at $Proxy15.getToken(Unknown Source)
| at teste.Teste.getXY(Teste.java:26)
| at teste.Teste.main(Teste.java:73)
| 16/04/2008 13:21:08 org.jboss.ws.core.jaxws.handler.MessageContextJAXWS - Begin response processing
| 16/04/2008 13:21:08 org.jboss.ws.core.soap.MessageContextAssociation - popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at bc5596 (Thread main)
| 16/04/2008 13:21:08 org.jboss.ws.core.soap.MessageContextAssociation - pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 8f2ca6 (Thread main)
| 16/04/2008 13:21:08 org.jboss.ws.core.jaxws.handler.HandlerChainExecutor - close
| 16/04/2008 13:21:08 org.jboss.ws.core.jaxws.handler.HandlerChainExecutor - close
| 16/04/2008 13:21:08 org.jboss.ws.core.jaxws.handler.HandlerChainExecutor - close
| 16/04/2008 13:21:08 org.jboss.ws.core.soap.MessageContextAssociation - popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 8f2ca6 (Thread main)
Can you see the problem?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144561#4144561
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144561
From do-not-reply at jboss.com Wed Apr 16 12:53:06 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Wed, 16 Apr 2008 12:53:06 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <3542745.1208364786912.JavaMail.jboss@colo-br-02.atl.jboss.com>
This is our code:
public class SOAPMessageUnMarshallerHTTP implements UnMarshaller
| {
| private static List validResponseCodes = new ArrayList();
| static
| {
| validResponseCodes.add(HttpServletResponse.SC_OK); // 200
| validResponseCodes.add(HttpServletResponse.SC_ACCEPTED);
| validResponseCodes.add(HttpServletResponse.SC_NO_CONTENT);
| validResponseCodes.add(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
| }
|
| public Object read(InputStream inputStream, Map metadata)
| throws IOException, ClassNotFoundException
| {
| ...
| if (validResponseCodes.contains(resCode) == false)
| throw new WSException("Invalid HTTP server response [" + resCode + "] - " + resMessage);
| ...
| }
That means we are able to process correctly the following HTTP codes:
200, 202, 204 and 500
Your response contains 501 HTTP code thus you are receiving the above exception :(
Anyway could you post me the response message body? I mean the one that contains 501 HTTP code.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144570#4144570
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144570
From do-not-reply at jboss.com Wed Apr 16 12:58:10 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Wed, 16 Apr 2008 12:58:10 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <27904064.1208365090309.JavaMail.jboss@colo-br-02.atl.jboss.com>
"richard.opalka at jboss.com" wrote :
| Anyway could you post me the response message body? I mean the one that contains 501 HTTP code.
I'd like to see if it's correct SOAP fault message or not.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144572#4144572
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144572
From do-not-reply at jboss.com Wed Apr 16 13:21:19 2008
From: do-not-reply at jboss.com (claudio_br)
Date: Wed, 16 Apr 2008 13:21:19 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <16096902.1208366479708.JavaMail.jboss@colo-br-02.atl.jboss.com>
With wireshark I got:
GET /webservices/v3/Authentication/Authentication.asmx?WSDL HTTP/1.1
|
| User-Agent: Java/1.5.0_06
|
| Host: webservices.maplink2.com.br
|
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
|
| Connection: keep-alive
|
| Content-type: application/x-www-form-urlencoded
|
|
|
| HTTP/1.0 200 OK
|
| Date: Wed, 16 Apr 2008 17:08:56 GMT
|
| Server: Microsoft-IIS/6.0
|
| X-Powered-By: ASP.NET
|
| X-AspNet-Version: 2.0.50727
|
| Cache-Control: private, max-age=0
|
| Content-Type: text/xml; charset=utf-8
|
| Content-Length: 3399
|
| X-Cache: MISS from fw0-sp.buscape-local.com.br
|
| Via: 1.0 fw0-sp.buscape-local.com.br:3128 (squid/2.6.STABLE16)
|
| Connection: keep-alive
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Cria token para autentica....o do usu..rio
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| GET /webservices/v3/Authentication/Authentication.asmx?WSDL HTTP/1.1
|
| User-Agent: Java/1.5.0_06
|
| Host: webservices.maplink2.com.br
|
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
|
| Connection: keep-alive
|
| Content-type: application/x-www-form-urlencoded
|
|
|
| HTTP/1.0 200 OK
|
| Date: Wed, 16 Apr 2008 17:08:56 GMT
|
| Server: Microsoft-IIS/6.0
|
| X-Powered-By: ASP.NET
|
| X-AspNet-Version: 2.0.50727
|
| Cache-Control: private, max-age=0
|
| Content-Type: text/xml; charset=utf-8
|
| Content-Length: 3399
|
| X-Cache: MISS from fw0-sp.buscape-local.com.br
|
| Via: 1.0 fw0-sp.buscape-local.com.br:3128 (squid/2.6.STABLE16)
|
| Connection: keep-alive
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Cria token para autentica....o do usu..rio
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| POST /webservices/v3/Authentication/Authentication.asmx HTTP/1.1
|
| SOAPAction: "http://webservices.maplink2.com.br/getToken"
|
| Content-Type: application/soap+xml; charset=UTF-8
|
| JBoss-Remoting-Version: 22
|
| User-Agent: JBossRemoting - 2.2.2.SP1 (Bluto)
|
| Host: webservices.maplink2.com.br
|
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
|
| Connection: keep-alive
|
| Transfer-Encoding: chunked
|
|
|
| HTTP/1.0 501 Not Implemented
|
| Server: squid/2.6.STABLE16
|
| Date: Thu, 17 Apr 2008 17:02:56 GMT
|
| Content-Type: text/html
|
| Content-Length: 1185
|
| Expires: Thu, 17 Apr 2008 17:02:56 GMT
|
| X-Squid-Error: ERR_UNSUP_REQ 0
|
| X-Cache: MISS from fw0-sp.buscape-local.com.br
|
| Via: 1.0 fw0-sp.buscape-local.com.br:3128 (squid/2.6.STABLE16)
|
| Connection: close
|
|
|
|
|
| ERROR: The requested URL could not be retrieved
|
|
| ERROR
| The requested URL could not be retrieved
|
|
| While trying to retrieve the URL:
| http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx
|
| The following error was encountered:
|
|
|
| Unsupported Request Method and Protocol
|
|
|
|
| Squid does not support all request methods for all access protocols.
| For example, you can not POST a Gopher request.
|
Your cache administrator is webmaster .
|
|
|
|
| Generated Thu, 17 Apr 2008 17:02:56 GMT by fw0-sp.buscape-local.com.br (squid/2.6.STABLE16)
|
|
| e3
|
| user password
|
| 0
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144584#4144584
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144584
From do-not-reply at jboss.com Wed Apr 16 14:08:59 2008
From: do-not-reply at jboss.com (shruthi)
Date: Wed, 16 Apr 2008 14:08:59 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Reg Installation
Message-ID: <11444762.1208369339522.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hiiii
I am a newbie to jboss web services. I have downloaded jbossws 1.2.1 GA and as per the instructions, i tried to install it. But the problem is i am unable to find ant.properties file where i can copy ant.properties.example. Could u plzzz let me know where this file resides. I searched in the folder where i installed ant, but of no use. Any help is appreciated
Thanks in advance
Shruthi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144605#4144605
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144605
From do-not-reply at jboss.com Wed Apr 16 15:02:49 2008
From: do-not-reply at jboss.com (claudio_br)
Date: Wed, 16 Apr 2008 15:02:49 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <32699504.1208372569977.JavaMail.jboss@colo-br-02.atl.jboss.com>
I executed my code with jbossws-2.0.0.GA and Jbossws-3.0.1-native-2.0.4.GA.
The POST with jbossws-2.0.0.GA (successful)
| POST /webservices/v3/Authentication/Authentication.asmx?datatype=JBossWSMessage HTTP/1.1
|
| SOAPAction: "http://webservices.maplink2.com.br/getToken"
|
| Content-Type: text/xml; charset=UTF-8
|
| JBoss-Remoting-Version: 22
|
| User-Agent: JBossRemoting - 2.2.2.SP4 (Bluto)
|
| Host: webservices.maplink2.com.br
|
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
|
| Connection: keep-alive
|
| Content-Length: 230
|
|
|
| user password
The POST with Jbossws-3.0.1-native-2.0.4.GA (with problem)
POST /webservices/v3/Authentication/Authentication.asmx HTTP/1.1
|
| SOAPAction: "http://webservices.maplink2.com.br/getToken"
|
| Content-Type: application/soap+xml; charset=UTF-8
|
| JBoss-Remoting-Version: 22
|
| User-Agent: JBossRemoting - 2.2.2.SP4 (Bluto)
|
| Host: webservices.maplink2.com.br
|
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
|
| Connection: keep-alive
|
| Transfer-Encoding: chunked
|
|
|
| e6
|
| user password
|
| 0
Please, read my last post too.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144616#4144616
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144616
From do-not-reply at jboss.com Wed Apr 16 15:10:50 2008
From: do-not-reply at jboss.com (PeterJ)
Date: Wed, 16 Apr 2008 15:10:50 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Reg Installation
Message-ID: <28528341.1208373051014.JavaMail.jboss@colo-br-02.atl.jboss.com>
Copy ant.properties.example as ant.properties.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144619#4144619
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144619
From do-not-reply at jboss.com Wed Apr 16 15:12:03 2008
From: do-not-reply at jboss.com (shruthi)
Date: Wed, 16 Apr 2008 15:12:03 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Reg Installation
Message-ID: <3455650.1208373123823.JavaMail.jboss@colo-br-02.atl.jboss.com>
please ignore my post. I have found out what to do.
Sorry abt that
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144620#4144620
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144620
From do-not-reply at jboss.com Wed Apr 16 15:12:27 2008
From: do-not-reply at jboss.com (PeterJ)
Date: Wed, 16 Apr 2008 15:12:27 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Reg Installation
Message-ID: <5873162.1208373148064.JavaMail.jboss@colo-br-02.atl.jboss.com>
The ant.properties.example file is in the base directory of the jbossws download.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144621#4144621
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144621
From do-not-reply at jboss.com Wed Apr 16 15:12:56 2008
From: do-not-reply at jboss.com (shruthi)
Date: Wed, 16 Apr 2008 15:12:56 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Reg Installation
Message-ID: <5912636.1208373176867.JavaMail.jboss@colo-br-02.atl.jboss.com>
Thanks peter for the reply
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144622#4144622
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144622
From do-not-reply at jboss.com Wed Apr 16 15:16:25 2008
From: do-not-reply at jboss.com (bsheward)
Date: Wed, 16 Apr 2008 15:16:25 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Cannot extract schema definition?
[FIXED]
Message-ID: <18528728.1208373385691.JavaMail.jboss@colo-br-02.atl.jboss.com>
OK, I figured out the problem, it was because there was a "?" in the URL, which wasn't translated into something that the Windows Filesystem could cope with.
I fixed the problem by making the highlighted changes to getSchemaTempFile() in org.jboss.ws.metadata.wsdl.xsd.SchemaUtils:
| /** Get the temp file for a given namespace
| */
| public static File getSchemaTempFile(String targetNS) throws IOException
| {
| if (targetNS.length() == 0)
| throw new IllegalArgumentException("Invalid null target namespace");
|
| String fname = targetNS;
| if (fname.indexOf("://") > 0)
| fname = fname.substring(fname.indexOf("://") + 3);
|
| File tmpdir = null;
| try
| {
| SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
| ServerConfig serverConfig = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();File tmpDir = serverConfig.getServerTempDir();
| tmpdir = serverConfig.getServerTempDir();
| tmpdir = new File(tmpdir.getCanonicalPath() + "/jbossws");
| tmpdir.mkdirs();
| }
| catch (Throwable th)
| {
| // ignore if the server config cannot be found
| // this would be the case if we are on the client side
| }
|
| fname = fname.replace('/', '_');
| fname = fname.replace(':', '_');
| fname = fname.replace('?', '_');
|
| File file = null;
| try {
| file = File.createTempFile("JBossWS_" + fname, ".xsd", tmpdir);
| } catch (IOException x) {
| System.out.println("FILE: JBossWS_" + fname);
| System.out.println("TMPDIR: " + tmpdir.getCanonicalFile());
| throw x;
| }
| return file;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144624#4144624
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144624
From do-not-reply at jboss.com Wed Apr 16 18:39:02 2008
From: do-not-reply at jboss.com (jyrinx)
Date: Wed, 16 Apr 2008 18:39:02 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Customizing XJC invocation?
Message-ID: <18929891.1208385542305.JavaMail.jboss@colo-br-02.atl.jboss.com>
We have an XJC plugin we very much need to use, but I don't see any way of changing the XJC command line used by wsconsume. Is it possible to use XJC plugins with JBoss WS?
(I saw a post from a year ago asking this question, but evidently the answer has changed, as wsconsume no longer appears to be a thin wrapper around wsimport.)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144662#4144662
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144662
From do-not-reply at jboss.com Wed Apr 16 20:51:21 2008
From: do-not-reply at jboss.com (nlaney)
Date: Wed, 16 Apr 2008 20:51:21 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Request Message not mapping to
Request Object Properly
Message-ID: <21749466.1208393481974.JavaMail.jboss@colo-br-02.atl.jboss.com>
Having similar issues; the response message looks, but the values aren't assigned to the objects. Any success?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144684#4144684
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144684
From do-not-reply at jboss.com Thu Apr 17 03:51:07 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Thu, 17 Apr 2008 03:51:07 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Cannot extract schema definition?
Message-ID: <13506606.1208418668012.JavaMail.jboss@colo-br-02.atl.jboss.com>
It will be fixed in next release, see:
http://jira.jboss.org/jira/browse/JBWS-2153
Thanks for your investigation ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144747#4144747
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144747
From do-not-reply at jboss.com Thu Apr 17 04:34:53 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Thu, 17 Apr 2008 04:34:53 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <22995182.1208421293049.JavaMail.jboss@colo-br-02.atl.jboss.com>
I'm not able to reproduce your problem.
I generated JAX-WS artifacts from WSDL using the following command:
| cd $JBOSS_HOME/bin
|
| ./wsconsume.sh --keep --extension --source=src http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx?WSDL
|
and I created the following test:
| package br.com.maplink2.webservices;
|
| import org.jboss.wsf.test.JBossWSTest;
|
| public final class AuthenticationTestCase extends JBossWSTest
| {
| public void testSOAP11()
| {
| Authentication auth = new Authentication();
| AuthenticationSoap as11 = auth.getAuthenticationSoap();
| System.out.println(as11.getToken("user", "password"));
| }
|
| public void testSOAP12()
| {
| Authentication auth = new Authentication();
| AuthenticationSoap as12 = auth.getAuthenticationSoap12();
| System.out.println(as12.getToken("user", "password"));
| }
| }
|
However I'm always getting HTTP 500 error message. I'm not able to reproduce your HTTP 501 error issue :(
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144756#4144756
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144756
From do-not-reply at jboss.com Thu Apr 17 04:36:45 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Thu, 17 Apr 2008 04:36:45 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <15294203.1208421405384.JavaMail.jboss@colo-br-02.atl.jboss.com>
I tried also low level approach based on sockets:
| package org.jboss.test.ws.remoting_issue;
|
| import java.io.InputStream;
| import java.io.OutputStream;
| import java.net.Socket;
|
| public final class Test {
|
| private static final String CRNL = "\r\n";
| private static final String envelope = "user password ";
| private static final String msg =
| "POST /webservices/v3/Authentication/Authentication.asmx HTTP/1.1" + CRNL +
| "SOAPAction: \"http://webservices.maplink2.com.br/getToken\"" + CRNL +
| "Content-Type: application/soap+xml; charset=UTF-8" + CRNL +
| "JBoss-Remoting-Version: 22" + CRNL +
| "User-Agent: JBossRemoting - 2.2.2.SP4 (Bluto)" + CRNL +
| "Host: webservices.maplink2.com.br" + CRNL +
| "Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" + CRNL +
| "Connection: keep-alive" + CRNL +
| "Transfer-Encoding: chunked" + CRNL +
| "" + CRNL +
| Integer.toHexString(envelope.length()) + CRNL +
| envelope + CRNL + "0" + CRNL;
|
| public static void main(String[] args) throws Exception
| {
| System.out.println("Sending message" + CRNL + CRNL + msg + CRNL);
| System.out.println("Receiving message" + CRNL);
| Socket socket = new Socket("webservices.maplink2.com.br", 80);
| OutputStream os = socket.getOutputStream();
| os.write(msg.getBytes());
| os.flush();
| InputStream is = socket.getInputStream();
| copy(is, System.out);
| }
|
| private static void copy(InputStream is, OutputStream os) throws Exception
| {
| byte[] buffer = new byte[128];
| int count = -1;
| while ((count = is.read(buffer)) != -1)
| {
| os.write(buffer, 0, count);
| }
| os.flush();
| }
|
| }
|
but still the same result. I'm always getting HTTP 500 error code, not 501 :(
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144758#4144758
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144758
From do-not-reply at jboss.com Thu Apr 17 04:43:14 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Thu, 17 Apr 2008 04:43:14 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Customizing XJC invocation?
Message-ID: <3718996.1208421794820.JavaMail.jboss@colo-br-02.atl.jboss.com>
"jyrinx" wrote : Is it possible to use XJC plugins with JBoss WS? No :(
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144759#4144759
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144759
From do-not-reply at jboss.com Thu Apr 17 04:45:59 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Thu, 17 Apr 2008 04:45:59 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Reg Installation
Message-ID: <24325440.1208421959414.JavaMail.jboss@colo-br-02.atl.jboss.com>
"shruthi" wrote : I have downloaded jbossws 1.2.1 GA
Why didn't you download JBossWS 3.0.1 release but really old one?
New one fixes a lot of issues, comes with a lot of new features.
I highly suggest to use the latest JBossWS version - always ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144762#4144762
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144762
From do-not-reply at jboss.com Thu Apr 17 05:30:10 2008
From: do-not-reply at jboss.com (rapowder)
Date: Thu, 17 Apr 2008 05:30:10 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: problem with calling ssl web service
Message-ID: <33464544.1208424610332.JavaMail.jboss@colo-br-02.atl.jboss.com>
The '1' is not a mistake, it was just an example to tell you that I have different webservices under different paths with the same root:
/interfaces/InterfaceBean1
| /interfaces/InterfaceBean2
| etc.
I am not sure whether this was clear, but that those are webservices listening to SOAP calls and the problem is that the associated wsdl files are not correctly generated by JBoss.
I also have the same configuration in server.xml, and I also have a redirection from http://...:8080 to https://...:8443, which works correctly for my web client.
I was actually wondering if the configuration is possible through jws annotations... Let me post you some more code, maybe this will help...
Here one of the interface beans:
| import javax.ejb.Stateless;
| import javax.jws.WebMethod;
| import javax.jws.WebParam;
| import javax.jws.WebService;
| import javax.jws.soap.SOAPBinding;
|
| @Stateless
| @WebService
| @SOAPBinding(style = SOAPBinding.Style.RPC)
| public class GenericInterfaceAgentBean implements GenericInterfaceAgent {
|
| @WebMethod
| public String sessionLogin(
| @WebParam(name = "pUsername")String user,
| @WebParam(name = "pPassword")String pass
| ) { ... }
|
| ....
|
| }
|
When I restart JBoss, a wsdl file is generated under the path:
jboss\server\myconf\data\wsdl\myapp.ear\myapp.jar\GenericInterfaceAgentBeanServiceXXX.wsdl
and the wsdl file contains (useful pieces of code)
(srv11 is the hostname of my server)
|
|
|
| ...
|
|
|
|
|
|
|
|
but what I would like is
|
| ...
|
|
|
|
|
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144778#4144778
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144778
From do-not-reply at jboss.com Thu Apr 17 06:41:57 2008
From: do-not-reply at jboss.com (maffeis)
Date: Thu, 17 Apr 2008 06:41:57 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ws.WSException
Message-ID: <32016180.1208428917307.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi. I was able to work around this issue by naming all my WSDL request parameters as "arg0", "arg1" etc (instead of "id", "name" in your example), and by naming by response parameter as "result". Probably there is a cleaner solution using JAXB annotation, which allows you to name parameters the way you like.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144797#4144797
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144797
From do-not-reply at jboss.com Thu Apr 17 06:51:24 2008
From: do-not-reply at jboss.com (yogeshkb)
Date: Thu, 17 Apr 2008 06:51:24 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - java-->wsdl/xsd query - minOccurs value
of args for wsdl ope
Message-ID: <17614751.1208429485127.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi Team,
I have a wsdl/xsd snippet generated for an SEI below.
The arguments for the operation are all mandatory and they cannot be null.
Pls help me on how to configure the wsprovide scripts to generate the wsdl/xsd with the minOccurs=1 for all the arguments of my operation.
Regards,
Yogesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144799#4144799
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144799
From do-not-reply at jboss.com Thu Apr 17 07:05:49 2008
From: do-not-reply at jboss.com (yogeshkb)
Date: Thu, 17 Apr 2008 07:05:49 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - @WebFault and @XmlType issues for
Exception classes
Message-ID: <19926986.1208430349464.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi Team,
I have many webservices with operations throwing a common exception (eg., SomeException) across all the services
I tried to annotate the SomeException class using various approaches but failed to generate the client stubs with a common target namespace different from the targetnamespace of the webservice itself.
Approach 1:
Used @XmlType(namespace="common.targetnamespace") in the SomeException class
Approach 2:
Used @WebFault(targetNamespace="common.targetnamespace")
In both the above approaches, the wsconsume generated a separate stub for SomeException class for each webservice in the same targetnamespace of the webservice and not on the specified common.targetnamespace.
My requirement is to generate a single SomeException client stub in the common.targetnamespace.
Pls let me know whether this is a bug or suggest some workarounds.
Regards,
Yogesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144802#4144802
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144802
From do-not-reply at jboss.com Thu Apr 17 09:02:13 2008
From: do-not-reply at jboss.com (shruthi)
Date: Thu, 17 Apr 2008 09:02:13 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Reg Installation
Message-ID: <4005540.1208437333153.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hey Richard
I have to continue with that version as its recommended. ok leave it, I want to place an issue which i am facing. When i am running the samples, i am getting following exception
java.lang.IllegalStateException: Could not load provider:org.jboss.ws.tools.jaxw
s.impl.WSContractConsumerFactoryImpl
Could u plzz let me know, where am i going wrong. I checked thirdparty folder, there is nothing in it.
Thanks in advance
Shruthi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144836#4144836
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144836
From do-not-reply at jboss.com Thu Apr 17 09:20:06 2008
From: do-not-reply at jboss.com (pisce)
Date: Thu, 17 Apr 2008 09:20:06 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: WebServiceContext is an interface
and JaxB can't handle
Message-ID: <5524503.1208438406439.JavaMail.jboss@colo-br-02.atl.jboss.com>
I guess you found your answer one year ago, but posting it as it appears as one of the first results when you google "JAXB can't handle interfaces".
It can occur when you try to marshall/unmarshall with Java classes containing members that are not declared static, and which (or one of their own members) don't have a non-arg constructor. For example a logger, or a JAXB Marshaller object that has a ValidationEventHandler with no non-arg constructor. Then JAXB tries to marshall/unmarshall them and fails with the above error message.
Just set them as 'static' and the problem should go.
If it doesn't resolve your problem, it can be more tricky with concerns about your web service document style. Take a look here:
http://forums.java.net/jive/message.jspa?messageID=215688
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144846#4144846
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144846
From do-not-reply at jboss.com Thu Apr 17 09:32:50 2008
From: do-not-reply at jboss.com (claudio_br)
Date: Thu, 17 Apr 2008 09:32:50 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <10284069.1208439170606.JavaMail.jboss@colo-br-02.atl.jboss.com>
Very stranger Richard,
I got here error 501.
But, try generate the stub client using jbossws-2.0.0.GA, should work.
Try send the POST with the version of jbossws-2.0.0.GA.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144850#4144850
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144850
From do-not-reply at jboss.com Thu Apr 17 09:42:44 2008
From: do-not-reply at jboss.com (claudio_br)
Date: Thu, 17 Apr 2008 09:42:44 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <29027121.1208439764976.JavaMail.jboss@colo-br-02.atl.jboss.com>
Completing the my last post, I am using a Windows machine and you a Unix machine. The default file-encoding are different. Because of this you can got error 500.
Please read my last post too.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144854#4144854
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144854
From do-not-reply at jboss.com Thu Apr 17 10:31:06 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Thu, 17 Apr 2008 10:31:06 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Reg Installation
Message-ID: <26623114.1208442666589.JavaMail.jboss@colo-br-02.atl.jboss.com>
"shruthi" wrote : Could u plzz let me know, where am i going wrong. I checked thirdparty folder, there is nothing in it.
Did you follow the installation instructions?
If yes please describe the exact steps you did.
Which JBoss AS and which JBossWS version are you using at the moment?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144878#4144878
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144878
From do-not-reply at jboss.com Thu Apr 17 10:38:09 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Thu, 17 Apr 2008 10:38:09 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <411683.1208443089118.JavaMail.jboss@colo-br-02.atl.jboss.com>
"claudio_br" wrote : Completing the my last post, I am using a Windows machine and you a Unix machine. The default file-encoding are different. Because of this you can got error 500.
| Please read my last post too.
| Thanks
I don't think the problem is related to unix vs. windows.
Maybe it's related to the machine default encoding.
Please, try to specify -Dfile.encoding=utf-8 on client side when executing the client via java command
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144883#4144883
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144883
From do-not-reply at jboss.com Thu Apr 17 10:59:47 2008
From: do-not-reply at jboss.com (shruthi)
Date: Thu, 17 Apr 2008 10:59:47 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Reg Installation
Message-ID: <22030184.1208444387973.JavaMail.jboss@colo-br-02.atl.jboss.com>
Yeah i am following this website and trying to do
http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS
I am using jboss app server of 4.2.2GA version, jbossws-1.2.1GA version and jdk 1.5, ant 1.7.0.
I have downloaded the jbossws-1.2.1GA stack and unzipped it and by pointing to the build file in the samples folder, i typed the command "ant tests" and my build failed with the mentioned exception.
java.lang.IllegalStateException: Could not load provider:org.jboss.ws.tools.jaxw
s.impl.WSContractConsumerFactoryImpl
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144902#4144902
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144902
From do-not-reply at jboss.com Thu Apr 17 12:26:18 2008
From: do-not-reply at jboss.com (claudio_br)
Date: Thu, 17 Apr 2008 12:26:18 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <11169743.1208449578983.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi Richard,
I am ready using -Dfile.encoding=utf-8.
In your test code you must to use:
os.write(msg.getBytes("UTF-8"))
|
You are using:
os.write(msg.getBytes())
Please, try using jbossws 2.0.0.GA to same wsdl, should work.
Try use POST of jbossws 2.0.0.GA in your test code.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144947#4144947
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144947
From do-not-reply at jboss.com Thu Apr 17 13:56:19 2008
From: do-not-reply at jboss.com (bsheward)
Date: Thu, 17 Apr 2008 13:56:19 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - How to log entire incoming and outgoing
message?
Message-ID: <32554663.1208454979766.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
Is there a simple mechanism (System property, log file configuration, etc) to allow me to log the actual XML message being sent and received? I see bits and pieces of the XML dealing with the actual request, but nothing related to the SOAPEnvelope etc.
I'm actually having a problem where if my SOAP request fails if it isn't prefixed by . So the following works:
|
|
|
|
|
| ?
| ?
| ?
|
|
|
|
Do I need to resort to a packet sniffer or proxy to check whether the "..." is included in the message?
Thanks and Regards,
Barry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144968#4144968
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144968
From do-not-reply at jboss.com Thu Apr 17 14:09:02 2008
From: do-not-reply at jboss.com (PeterJ)
Date: Thu, 17 Apr 2008 14:09:02 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: How to log entire incoming and
outgoing message?
Message-ID: <29784121.1208455742834.JavaMail.jboss@colo-br-02.atl.jboss.com>
Uncomment this entry in the jboss-log4j.xml file:
|
The SOAP messages will then show up in server.log.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144971#4144971
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144971
From do-not-reply at jboss.com Thu Apr 17 14:56:48 2008
From: do-not-reply at jboss.com (bsheward)
Date: Thu, 17 Apr 2008 14:56:48 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: How to log entire incoming and
outgoing message?
Message-ID: <23888840.1208458609877.JavaMail.jboss@colo-br-02.atl.jboss.com>
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144980#4144980
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144980
From do-not-reply at jboss.com Thu Apr 17 14:57:55 2008
From: do-not-reply at jboss.com (bsheward)
Date: Thu, 17 Apr 2008 14:57:55 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Cannot extract schema definition?
Message-ID: <22729692.1208458676064.JavaMail.jboss@colo-br-02.atl.jboss.com>
You're welcome! Thanks for JBossWS !
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144981#4144981
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144981
From do-not-reply at jboss.com Thu Apr 17 15:14:03 2008
From: do-not-reply at jboss.com (bsheward)
Date: Thu, 17 Apr 2008 15:14:03 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - How to prefix a SOAP Message with a
Processing Instruction?
Message-ID: <9578545.1208459644082.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
I have a very simple piece of code to invoke a web service:
| ReService service = new ReService();
| RePortType re = service.getRePort();
| results = re.getReResult( query, username, password);
|
It results in the following SOAP message being posted:
|
|
|
|
| select * from tbl
| user
| xxxxxxxx
|
|
|
|
The problem is that this request is rejected by the server. However, when I prefix the SOAP message with a processing instruction, the server responds correctly:
|
|
|
|
|
| select * from tbl
| user
| xxxxxxxx
|
|
|
|
(I tested this theory using SOAP UI (http://www.soapui.org/))
My question is, what is the best way, to prefix the processing instruction to the SOAP message?
Are HandlerChains the right way to go?
Are there any examples of this type of message manipulation?
Thanks and Regards,
Barry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144983#4144983
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144983
From do-not-reply at jboss.com Thu Apr 17 15:21:16 2008
From: do-not-reply at jboss.com (jyrinx)
Date: Thu, 17 Apr 2008 15:21:16 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Customizing XJC invocation?
Message-ID: <16368818.1208460076676.JavaMail.jboss@colo-br-02.atl.jboss.com>
"richard.opalka at jboss.com" wrote : "jyrinx" wrote : Is it possible to use XJC plugins with JBoss WS? No :(
Hrm ... that's saddening. Can anyone think of a good hack here?
Well, let me explain the problem: We have a Web service that returns objects of an abstract class. So long as we put @XmlSeeAlso on the superclass, the WSDL comes out fine, and the XML elements have xsi:type attributes, and all is well on the server side. (We're using JBoss WS on both the client and server.)
But then we try out our test client, and we keep getting InstantiationExceptions when JAXB fails to resolve the entities to their concrete subclass and tries to instantiate the abstract superclass. We realized that if we modified the generated code to include @XmlSeeAlso annotations mirroring those on the server side, everything worked. So the question is one of getting those annotations into the client code.
(We could put dummy methods with the concrete subclasses as argument types into the Web service just to force all the subclasses into the JAXBContext, but we'd rather not ...)
So this is all quite solvable with an XJC plugin: It has all the information it needs to write the annotations, and the ideal interface to add them to the generated classes. (The plugin class is about 30 LOC.) If there's some way to get that to work, that would be best. Otherwise, we're going to have to resort to much cruder means of post-processing (or the aforementioned dummy methods).
(There's also this thing, but honestly I'm not sure how we'd make use of it: it has to go in the generated schema somehow?)
And besides, there are other very useful XJC plugins - the one that adds toString() methods, for instance, would be very convenient.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144985#4144985
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144985
From do-not-reply at jboss.com Thu Apr 17 17:27:19 2008
From: do-not-reply at jboss.com (ashishtiwari)
Date: Thu, 17 Apr 2008 17:27:19 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Error during deployment with EJB3
exposed as WebService
Message-ID: <30121467.1208467639139.JavaMail.jboss@colo-br-02.atl.jboss.com>
I am using JBoss AS 5.0.0 Beta 4. I am trying to expose simple EJB3 as Jax-WS based webservice by using annotation, but the ear file is failing to deploy. Following is the error stack that I am seeing:
anonymous wrote : 16:56:18,691 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta4 (build: SVNTag=JBoss_5_0_0_Beta4 date=200802091115)] Started in 35s:752ms
| 16:59:11,203 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:ear=JBossWSTest.ear,jar=JBossEJB3.jar,name=JBossEJB3HelloWorld,service=EJB3 with dependencies:
| 16:59:11,203 INFO [MCKernelAbstraction] and demands:
| 16:59:11,203 INFO [MCKernelAbstraction] jboss.ejb:service=EJBTimerService
| 16:59:11,203 INFO [MCKernelAbstraction] and supplies:
| 16:59:11,203 INFO [MCKernelAbstraction] Class:sample.ejb.JBossEJB3HelloWorldRemoteInterface
| 16:59:11,874 INFO [EJBContainer] STARTED EJB: sample.ejb.JBossEJB3HelloWorld ejbName: JBossEJB3HelloWorld
| 16:59:12,015 INFO [DefaultEndpointRegistry] register: jboss.ws:context=JBossEJB3HelloWorld,endpoint=JBossEJB3HelloWorld
| 16:59:14,031 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss-5.0.0.Beta4/server/default/data/wsdl/JBossWSTest.ear/JBossEJB3.jar/JBossEJB3HelloWorldService45127.wsdl
| 16:59:35,063 INFO [MCKernelAbstraction] uninstalling bean: jboss.j2ee:ear=JBossWSTest.ear,jar=JBossEJB3.jar,name=JBossEJB3HelloWorld,service=EJB3
| 16:59:35,079 INFO [EJBContainer] STOPPED EJB: sample.ejb.JBossEJB3HelloWorld ejbName: JBossEJB3HelloWorld
| 16:59:35,095 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/jboss-5.0.0.Beta4/server/default/deploy/JBossWSTest.ear state=PostClassLoader mode=Manual requiredState=Real
| org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/C:/jboss-5.0.0.Beta4/server/default/deploy/JBossWSTest.ear/JBossEJB3.jar
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:175)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
| at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
| at java.lang.Thread.run(Unknown Source)
| Caused by: org.jboss.wsf.spi.deployment.WSFDeploymentException: javax.xml.ws.WebServiceException: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
| at org.jboss.wsf.spi.deployment.WSFDeploymentException.rethrow(WSFDeploymentException.java:54)
| at org.jboss.wsf.container.jboss50.WebAppDeploymentAspect.create(WebAppDeploymentAspect.java:87)
| at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:118)
| at org.jboss.wsf.container.jboss50.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:95)
| at org.jboss.wsf.container.jboss50.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:63)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| ... 23 more
| Caused by: javax.xml.ws.WebServiceException: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
| at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:92)
| at org.jboss.wsf.container.jboss50.WebAppDeploymentAspect.create(WebAppDeploymentAspect.java:74)
| ... 28 more
| Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
| at org.dom4j.io.SAXReader.read(SAXReader.java:484)
| at org.dom4j.io.SAXReader.read(SAXReader.java:343)
| at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:111)
| at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:84)
| ... 29 more
| 16:59:35,110 WARN [HDScanner] Failed to process changes
| org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| *** CONTEXTS IN ERROR: Name -> Error
|
| vfsfile:/C:/jboss-5.0.0.Beta4/server/default/deploy/JBossWSTest.ear -> org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
|
|
| at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:291)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
| at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
| at java.lang.Thread.run(Unknown Source)
Here are all other details:
Code for Sample EJB3 class - JBossEJB3HelloWorld.java:
package sample.ejb;
|
| import javax.ejb.Stateless;
| import javax.jws.WebMethod;
| import javax.jws.WebService;
| import javax.jws.soap.SOAPBinding;
|
| import org.jboss.wsf.spi.annotation.WebContext;
|
| @Stateless
| @WebService
| @WebContext(contextRoot="/JBossEJB3HelloWorld", urlPattern="/JBossEJB3HelloWorld")
| @SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
| public class JBossEJB3HelloWorld implements JBossEJB3HelloWorldRemoteInterface
| {
| @WebMethod
| public String sayHello(String input)
| {
| return "Hello " + input;
| }
| }
-------
Code for Sample EJB3 remote interface - JBossEJB3HelloWorldRemoteInterface.java:
package sample.ejb;
|
| import javax.ejb.Remote;
|
| @Remote
| public interface JBossEJB3HelloWorldRemoteInterface
| {
| String sayHello(String input);
| }
----
Packaged as JBossWSTest.ear file with following application.xml
|
|
| JBossEJB3.jar
|
|
I appreciate any help or pointers for resolving this issue.
-Ashish
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144999#4144999
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144999
From do-not-reply at jboss.com Thu Apr 17 18:12:27 2008
From: do-not-reply at jboss.com (thoste)
Date: Thu, 17 Apr 2008 18:12:27 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: How to package a web app into a
.war file?
Message-ID: <17149299.1208470347866.JavaMail.jboss@colo-br-02.atl.jboss.com>
"richard.opalka at jboss.com" wrote : Download our source distribution and take a look to samples ;)
These samples are rather complex.
The samples contain a lot of nested ANT build.xml files.
It would be rather complicated to track down manually this call hierarchy
and assignment dependencies.
Is there really no simple "Hello world" WebService sample
with just a few environment assignments, a compilation and a deployment statement?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145005#4145005
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145005
From do-not-reply at jboss.com Thu Apr 17 19:25:31 2008
From: do-not-reply at jboss.com (PeterJ)
Date: Thu, 17 Apr 2008 19:25:31 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: How to package a web app into a
.war file?
Message-ID: <14352484.1208474731225.JavaMail.jboss@colo-br-02.atl.jboss.com>
A simple web service is at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121494&postdays=0&postorder=asc&start=20
The war contents are not very clear, though. There are only two files in the war for that example:
WEB-INF/web.xml
WEB-INF/classes/sum.Sum.class
That is all there is to it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145013#4145013
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145013
From do-not-reply at jboss.com Fri Apr 18 03:05:09 2008
From: do-not-reply at jboss.com (rashmi_yes)
Date: Fri, 18 Apr 2008 03:05:09 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Problem in passing/returning objects
over dynamic web servic
Message-ID: <10706060.1208502310020.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi Friends,
I am beginner in java web service.
Here is the problem I am facing when I pass/return user defined objects to remote web service method using dynamic we service call.
The client can call the remote web service method in 2 ways.
1. By generating client stubs using WSDL file
- In this case, I am able to pass/return the user defined objects to remote method without any issue only when the server side web services are deployed in any server(jboss)
- But in java 1.6 & above, the web services can be deployed without server using endpoint. In this case, I am not able to pass/return objects over web service calls.
2. Without generating client stubs (dynamic web service call)
- This will establish a connection at run time using the given WSDL file (I have attached the document). I have to form an XML(This will contain API name, arguments) string as input at run time
- In this case, it allows only string as argument while passing & returning.
Please let me know if you can help me on this.
Regards,
pani
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145054#4145054
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145054
From do-not-reply at jboss.com Fri Apr 18 04:25:39 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Fri, 18 Apr 2008 04:25:39 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: How to prefix a SOAP Message with a
Processing Instructi
Message-ID: <4875710.1208507139217.JavaMail.jboss@colo-br-02.atl.jboss.com>
This will be possible with next release ;) See
http://jira.jboss.org/jira/browse/JBWS-2156
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145074#4145074
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145074
From do-not-reply at jboss.com Fri Apr 18 04:44:24 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Fri, 18 Apr 2008 04:44:24 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Customizing XJC invocation?
Message-ID: <1919042.1208508264233.JavaMail.jboss@colo-br-02.atl.jboss.com>
Please read the following doc:
http://wiki.jboss.org/wiki/JAXBIntroductions
It allows you to do some JAXB customizations and it's config driven. Maybe you will be able to solve your usecase. JBossWS support jaxbintros feature. There are also some tests available in JBossWS source distribution so you can take a look there.
If you will be able to find the solution that solves your usecase we would be very pleased if you would document it in our Wiki ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145080#4145080
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145080
From do-not-reply at jboss.com Fri Apr 18 04:48:21 2008
From: do-not-reply at jboss.com (heiko.braun@jboss.com)
Date: Fri, 18 Apr 2008 04:48:21 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Customizing XJC invocation?
Message-ID: <8151979.1208508501919.JavaMail.jboss@colo-br-02.atl.jboss.com>
No, JAXBIntrods is something different. I guess what you are asking for is
http://weblogs.java.net/blog/kohsuke/archive/2005/06/writing_a_plugi.html, right?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145082#4145082
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145082
From do-not-reply at jboss.com Fri Apr 18 04:49:08 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Fri, 18 Apr 2008 04:49:08 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Reg Installation
Message-ID: <24144058.1208508548816.JavaMail.jboss@colo-br-02.atl.jboss.com>
When you unzip your distribution, you have to copy ant.properties.example to ant.properties, modify this file accordingly and run ant tests from the root directory of your unzipped JBossWS 1.2.1 GA distribution
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145084#4145084
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145084
From do-not-reply at jboss.com Fri Apr 18 09:17:51 2008
From: do-not-reply at jboss.com (claudio_br)
Date: Fri, 18 Apr 2008 09:17:51 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <13261319.1208524671859.JavaMail.jboss@colo-br-02.atl.jboss.com>
Could you do the test?
This problem with the release jbossws-3.0.1-native-2.0.4 doesn??t allow I update from release jboss-2.0.0.GA.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145146#4145146
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145146
From do-not-reply at jboss.com Fri Apr 18 09:22:45 2008
From: do-not-reply at jboss.com (pramod_bs)
Date: Fri, 18 Apr 2008 09:22:45 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: WS-Security question
Message-ID: <4739202.1208524965163.JavaMail.jboss@colo-br-02.atl.jboss.com>
Please look into this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145149#4145149
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145149
From do-not-reply at jboss.com Fri Apr 18 09:26:27 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Fri, 18 Apr 2008 09:26:27 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <7499434.1208525187529.JavaMail.jboss@colo-br-02.atl.jboss.com>
"claudio_br" wrote :
| You are using:
| os.write(msg.getBytes())
|
Yes, because my default platform encoding is utf-8 (it applies to the call)
"claudio_br" wrote :
| Please, try using jbossws 2.0.0.GA to same wsdl, should work.
| Try use POST of jbossws 2.0.0.GA in your test code.
|
I don't know that you mean :( I was no able to reproduce your 501 problem with JBossWS 3.0.1 why I should try to reproduce it with JBossWS 2.0.0 GA when you say it works?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145150#4145150
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145150
From do-not-reply at jboss.com Fri Apr 18 10:02:14 2008
From: do-not-reply at jboss.com (claudio_br)
Date: Fri, 18 Apr 2008 10:02:14 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <25225304.1208527334091.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi Richard,
I asked you to try with the release jbossws-2.0.0.GA to prove that .net webservice is functioning normally and that the problem is in release jbossws-3.0.1-native-2.0.4, because the release jbossws-2.0.0.GA works.
The .net webservice return always http code 200 to correct request. You got error 500 with release jbossws-3.0.1-native-2.0.4 is a problem too.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145164#4145164
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145164
From do-not-reply at jboss.com Fri Apr 18 10:11:30 2008
From: do-not-reply at jboss.com (reluser99)
Date: Fri, 18 Apr 2008 10:11:30 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Asynchronous WebService Using
JBOSS4.2.2 & Seam
Message-ID: <30221132.1208527890781.JavaMail.jboss@colo-br-02.atl.jboss.com>
I want to invoke webservice method calls asynchronously through my client (so as not to wait for the response for long time).
I am using the following bindings file and wsimport ant task to accomplish using an example from online source
I tried bindings for that particular node (only one web service WSDL or globally for all WSDL's). Below is with globally with all WSDL's. Either way I am out of luck as asynchronous call is not working. Online sources specify using this on Bindings file.
enableAsyncMapping=true
Please provide any suggestion if you used it with JBOSS4.2.2 with Seam.
custom.xml after xml version name (global bindings used here)
true
wsimprot ant task below.
binding dir="" includes="custom.xml" (Above file)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145165#4145165
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145165
From do-not-reply at jboss.com Fri Apr 18 12:38:38 2008
From: do-not-reply at jboss.com (hbpost)
Date: Fri, 18 Apr 2008 12:38:38 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - TestSuite in Eclipse problem
Message-ID: <10140643.1208536718756.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi. I'm having difficulty getting the JBossWS TestSuite to run in Eclipse. I'm using jbossws-3.01-native under 4.2.2GA and was able to build and install jbossws successfully, and run the test from the ant script. I've followed the instructions under 'Setup you IDE' and everything builds fine, but when I try to run any of the tests in Eclipse 3.3.1 I get: "Could not find the main class. Program will exit." The .launch files have been processed correctly from what I can tell, I just can't see what's missing.
Thanks,
Herman Post
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145194#4145194
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145194
From do-not-reply at jboss.com Fri Apr 18 13:54:34 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Fri, 18 Apr 2008 13:54:34 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <24081392.1208541274169.JavaMail.jboss@colo-br-02.atl.jboss.com>
Sorry, but I'm getting the same result with JBossWS 2.0.0 :(
| POST /webservices/v3/Authentication/Authentication.asmx?datatype=JBossWSMessage HTTP/1.1
| SOAPAction: "http://webservices.maplink2.com.br/getToken"
| Content-Type: text/xml; charset=UTF-8
| JBoss-Remoting-Version: 22
| User-Agent: JBossRemoting - 2.2.2.SP1 (Bluto)
| Host: webservices.maplink2.com.br
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
| Connection: keep-alive
| Content-Length: 227
|
| user password
|
| HTTP/1.1 500 Internal Server Error
| Date: Fri, 18 Apr 2008 17:52:03 GMT
| Server: Microsoft-IIS/6.0
| X-Powered-By: ASP.NET
| X-AspNet-Version: 2.0.50727
| Cache-Control: private
| Content-Type: application/soap+xml; charset=utf-8
| Content-Length: 743
|
| soap:Sender Autentica....o n..o autorizada, por favor, entre em contato com a MapLink. http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx?datatype=JBossWSMessage
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145216#4145216
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145216
From do-not-reply at jboss.com Fri Apr 18 14:21:46 2008
From: do-not-reply at jboss.com (jyrinx)
Date: Fri, 18 Apr 2008 14:21:46 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Customizing XJC invocation?
Message-ID: <8245394.1208542906740.JavaMail.jboss@colo-br-02.atl.jboss.com>
"richard.opalka at jboss.com" wrote : Please read the following doc:
|
| http://wiki.jboss.org/wiki/JAXBIntroductions
|
| It allows you to do some JAXB customizations and it's config driven. Maybe you will be able to solve your usecase. JBossWS support jaxbintros feature. There are also some tests available in JBossWS source distribution so you can take a look there.
|
Hrm ... if one could sneak an element into the schema that way, that'd be great. I'm guessing from the wiki, though, that Introductions only hooks into schemagen as an alternate annotation reader; can it then do anything an annotation can't? (Otherwise, I don't think Introductions applies here (slick tool nonetheless), since we control all the relevant classes on the server side and can annotate them the old-fashioned way.)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145227#4145227
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145227
From do-not-reply at jboss.com Fri Apr 18 14:29:21 2008
From: do-not-reply at jboss.com (jyrinx)
Date: Fri, 18 Apr 2008 14:29:21 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Customizing XJC invocation?
Message-ID: <13775052.1208543361055.JavaMail.jboss@colo-br-02.atl.jboss.com>
"heiko.braun at jboss.com" wrote : No, JAXBIntrods is something different. I guess what you are asking for is
| http://weblogs.java.net/blog/kohsuke/archive/2005/06/writing_a_plugi.html, right?
Yes yes, that. The problem is I can't add the option ("-Xinject-code" in his example) to the XJC command line, thereby activating the plugin. (Come to think of it, XJC should just let plugins be activated by a registered customization element ... this is Java, land of XML everything :-) )
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145229#4145229
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145229
From do-not-reply at jboss.com Fri Apr 18 15:23:44 2008
From: do-not-reply at jboss.com (claudio_br)
Date: Fri, 18 Apr 2008 15:23:44 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <10098829.1208546624775.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi Richard
Your last response is correct! You got error 500 because user and password are fake. I can not send my user and password of the system.
The original message is:
Autentica....o n..o autorizada, por favor, entre em contato com a MapLink.
The message translated is:
Authentication unauthorized, please contact the MapLink
The framework jbossws transform error 500 in my client to:
javax.xml.ws.soap.SOAPFaultException: Autentica????????o n????o autorizada, por favor, entre em contato com a MapLink.
The response obtained with the version jbossws-3.0.1-native-2.0.4 is the same as obtained with the release jbossws-2.0.0.GA?
Why I got error 501?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145248#4145248
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145248
From jbossws-users at lists.jboss.org Sat Apr 19 05:39:48 2008
From: jbossws-users at lists.jboss.org (jbossws-users at lists.jboss.org)
Date: Sat, 19 Apr 2008 05:39:48 -0400
Subject: [jbossws-users] Dear jbossws-users@lists.jboss.org April 80% 0FF
Message-ID: <20080419123949.5803.qmail@xxx-2c79e1db5d6>
Canadian Doctor Eldon Best Price On Net
http://www.google.com/pagead/iclk?sa=l&ai=nhysi&num=3222&adurl=http://lkuh.himlook.com?anlv
From do-not-reply at jboss.com Mon Apr 21 04:25:05 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Mon, 21 Apr 2008 04:25:05 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <3638383.1208766305754.JavaMail.jboss@colo-br-02.atl.jboss.com>
"claudio_br" wrote :
| The response obtained with the version jbossws-3.0.1-native-2.0.4 is the same as obtained with the release jbossws-2.0.0.GA?
|
Yes
"claudio_br" wrote :
| Why I got error 501?
| Thanks
|
I wonder too why you're getting 501. I'm not able to tell you :( I verified all the following scenarios but without success to reproduce your 501 issue:
message with Content-Length
| chunked message
| message without query parameter
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145395#4145395
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145395
From do-not-reply at jboss.com Mon Apr 21 08:47:23 2008
From: do-not-reply at jboss.com (extasy)
Date: Mon, 21 Apr 2008 08:47:23 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Class loading error
Message-ID: <27210844.1208782043628.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
This eror occured while trying to load axis based service in jboss 4.2.2 GA
Why this class loading error occurs, Could anybody help.
************************
10:46:14,945 INFO [TomcatDeployer] deploy, ctxPath=/axis, warUrl=.../tmp/deploy
/tmp19794axis-exp.war/
10:50:47,866 ERROR [[AxisServlet]] Servlet.service() for servlet AxisServlet thr
ew exception
java.lang.NoClassDefFoundError: Could not initialize class com.nortelnetworks.im
s.app.prov.impl.EAPrefixImpl
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:177)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:142)
at org.apache.axis.utils.cache.ClassCache.lookup(ClassCache.java:85)
at org.apache.axis.providers.java.JavaProvider.getServiceClass(JavaProvi
der.java:428)
at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvi
der.java:461)
at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(S
OAPService.java:286)
at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDServi
ce.java:500)
at org.apache.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(WS
DDDeployment.java:503)
at org.apache.axis.configuration.FileProvider.getDeployedServices(FilePr
ovider.java:296)
at org.apache.axis.transport.http.AxisServlet.reportAvailableServices(Ax
isServlet.java:482)
at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:260
)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas
e.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
onnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
6)
at java.lang.Thread.run(Thread.java:619)
***************************
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145483#4145483
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145483
From do-not-reply at jboss.com Mon Apr 21 16:51:11 2008
From: do-not-reply at jboss.com (frst)
Date: Mon, 21 Apr 2008 16:51:11 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Complex type names in wsdl starts with
lowercase?
Message-ID: <18435875.1208811071423.JavaMail.jboss@colo-br-02.atl.jboss.com>
I'm trying to set up web services in jboss 4.2.2 using jax-ws, but the complex type name in the generated wsdl always starts with lowercase even if the class name starts with uppercase.
Example class:
| public class Price {
| private double amount;
| private String currency;
| ...
| }
|
Generated wsdl:
| ...
|
|
|
|
|
|
| ...
|
Is it possible to get the complex type name equal the class name (i.e. starting with uppercase)?
Thanks in advance
Fredrik
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145632#4145632
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145632
From do-not-reply at jboss.com Tue Apr 22 03:19:40 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Tue, 22 Apr 2008 03:19:40 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Complex type names in wsdl starts
with lowercase?
Message-ID: <23890043.1208848780376.JavaMail.jboss@colo-br-02.atl.jboss.com>
"frst" wrote :
| Is it possible to get the complex type name equal the class name (i.e. starting with uppercase)?
|
http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#Customizing_WSDL_Schema_Generation
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145700#4145700
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145700
From do-not-reply at jboss.com Tue Apr 22 10:05:14 2008
From: do-not-reply at jboss.com (yogeshkb)
Date: Tue, 22 Apr 2008 10:05:14 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - How to get password from Handlers?
Message-ID: <6150857.1208873115055.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi ,
Iam using BASIC AUTH. I have a requirement to use the given username and password and use them to do my own auth validations.
I can see some options to get the username. Pls let me know how to get the password from the MessageContext object.
Regards,
Yogesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145848#4145848
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145848
From do-not-reply at jboss.com Tue Apr 22 10:57:00 2008
From: do-not-reply at jboss.com (joshua.dev)
Date: Tue, 22 Apr 2008 10:57:00 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - JbossWS 2.0.3GA installation fails on
JBoss AS 4.2.1.GA
Message-ID: <12875148.1208876220655.JavaMail.jboss@colo-br-02.atl.jboss.com>
I'm trying to install the JBossWS-native 2.0.3.GA on a "fresh" JBoss AS 4.2.1.GA using the "ant deploy-jboss421" command and keep failing with lots of java.lang.ClassNotFoundException and java.lang.NoClassDefFoundError.
According to http://jira.jboss.org/jira/browse/JBWS-1924 this issue has already been resolved so what is wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145886#4145886
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145886
From do-not-reply at jboss.com Tue Apr 22 11:02:02 2008
From: do-not-reply at jboss.com (claudio_br)
Date: Tue, 22 Apr 2008 11:02:02 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <14348381.1208876522998.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi Richard,
The problem with 501 persist.
I created a test client to simulate my problem and sended to your email. Please, can you run my test client?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145889#4145889
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145889
From do-not-reply at jboss.com Tue Apr 22 11:05:04 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Tue, 22 Apr 2008 11:05:04 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: JbossWS 2.0.3GA installation fails
on JBoss AS 4.2.1.GA
Message-ID: <8346446.1208876704048.JavaMail.jboss@colo-br-02.atl.jboss.com>
Download latest native release from here:
http://www.jboss.org/jbossws/
It's called jbossws-3.0.1-native-2.0.4.GA.zip. It should be fixed there.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145892#4145892
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145892
From do-not-reply at jboss.com Tue Apr 22 11:21:28 2008
From: do-not-reply at jboss.com (moksha2007)
Date: Tue, 22 Apr 2008 11:21:28 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Problem accessing generated WSDL
Message-ID: <9954547.1208877689011.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
I am using Jboss 4.2.2.GA in the following situation; multiple jboss instances and virtual hosts on a single machine. I am also using apache with ajp/proxy to forward requests to the appropriate virtual hosts.
For the webservices, I have stateless EJB with annotations, and I can see Jboss generates the wdsl file, but binds it where it becomes difficult to reach it. Something like 127.0.0.105:8080 (virtual ip).
To solve that, I am using jboss' WebContext annotation (jbossws-spi). In addition, I am overriding the property 'webServiceHost' in the jboss-beans.xml (from the jbossws.sar/jbossws.beans/META-INF). As result I seeing a 'correct' address in the server.log/ServerEndPointMetaData. However when using the URL it is being picked up by the regular web site that is accompied with the ear-file. I am doing something wrong here? Or do I need to add a mapping/reference in the web.xml to forward web-service requests to the appropriate servlet?
Any suggestions? Thanks in advance,
Mike Ahlers
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145904#4145904
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145904
From do-not-reply at jboss.com Tue Apr 22 15:00:42 2008
From: do-not-reply at jboss.com (claudio_br)
Date: Tue, 22 Apr 2008 15:00:42 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice
with jbossws-3.0.1-nat
Message-ID: <31223133.1208890842349.JavaMail.jboss@colo-br-02.atl.jboss.com>
Sorry, sorry, sorry ...
I found the problem.
I looked the request and response (previous post) again and I saw:
Generated Thu, 17 Apr 2008 17:02:56 GMT by fw0-sp.buscape-local.com.br (squid/2.6.STABLE16)
The Squid in my local network blocked the access. I tested in another machine out of my local network and worked.
Richard thank you for your help and patience.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145973#4145973
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145973
From do-not-reply at jboss.com Tue Apr 22 15:31:33 2008
From: do-not-reply at jboss.com (Lauri)
Date: Tue, 22 Apr 2008 15:31:33 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: How to log entire incoming and
outgoing message?
Message-ID: <22711457.1208892693083.JavaMail.jboss@colo-br-02.atl.jboss.com>
"PeterJ" wrote : Uncomment this entry in the jboss-log4j.xml file:
|
| |
|
| The SOAP messages will then show up in server.log.
Same action can be done without using /jmx-console/
Find
service=Logging,type=Log4jService
And set log level of org.jboss.ws.core.MessageTrace (or even org.jboss.ws.core)
to TRACE
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145977#4145977
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145977
From do-not-reply at jboss.com Tue Apr 22 15:32:15 2008
From: do-not-reply at jboss.com (Lauri)
Date: Tue, 22 Apr 2008 15:32:15 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: How to log entire incoming and
outgoing message?
Message-ID: <4288336.1208892735807.JavaMail.jboss@colo-br-02.atl.jboss.com>
*without = with
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145978#4145978
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145978
From do-not-reply at jboss.com Tue Apr 22 15:52:56 2008
From: do-not-reply at jboss.com (Lauri)
Date: Tue, 22 Apr 2008 15:52:56 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - ERROR
[org.jboss.wsf.stack.jbws.RequestHandlerImpl] Cannot c
Message-ID: <30618813.1208893976622.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hello.
Do you probably know if such (see subject) error message mean serious trouble?
Jboss 4.2.2 + jbossws 3.0.1 are installed.
Quite often, may be on every WS call a error message is posted to the log
18:40:52,551 ERROR [org.jboss.wsf.stack.jbws.RequestHandlerImpl] Cannot close output stream
| 18:40:56,699 ERROR [org.jboss.wsf.stack.jbws.RequestHandlerImpl] Cannot close output stream
| 18:41:21,552 ERROR [org.jboss.wsf.stack.jbws.RequestHandlerImpl] Cannot close output stream
source of org.jboss.wsf.stack.jbws.RequestHandlerImpl
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossws/branches/jbossws-2.0/integration/native/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java?view=markup&pathrev=3507
gives no explanation
| ......
| try
| {
| ServletRequestContext reqContext = new ServletRequestContext(context, req, res);
| handleWSDLRequest(endpoint, out, reqContext);
| }
| catch (Exception ex)
| {
| handleException(ex);
| }
| finally
| {
| try
| {
| out.close();
| }
| catch (IOException ioex)
| {
| log.error("Cannot close output stream");
| }
| }
| ....
|
Questions
1) Do you probably know if such (see subject) error message mean serious trouble?
2) What can be reason of the error message?
3) Can it be that WS code has inappropriate code which somehow closes that stream?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145980#4145980
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145980
From do-not-reply at jboss.com Tue Apr 22 17:09:24 2008
From: do-not-reply at jboss.com (moksha2007)
Date: Tue, 22 Apr 2008 17:09:24 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Problem accessing generated WSDL
Message-ID: <4137283.1208898564799.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
Did a little more investigation, and it seems the problem is somewhere in the server.xml (jboss-web.deployer), at least that is what I think.
In there I have a Host configuration that matches with the virtual host. Meaning all request go through that specific web application, including the web-service requests.
|
| x.xxx.com
| ...
|
and apache proxy config:
|
| ServerName x.xxx.com
| ServerSignature Off
| ProxyPass / ajp://127.0.0.105:8009/
| ProxyPassReverse / ajp://127.0.0.105:8009/
|
|
Using that, I cannot reach the 'standard' services (sars) like jmx-console and such, but my application just fine.
When I add another virtual host config in apache, like:
|
| ServerName y.xxx.com
| ServerSignature Off
| ProxyPass / ajp://127.0.0.105:8009/
| ProxyPassReverse / ajp://127.0.0.105:8009/
|
|
Then, I can see the wsdl, but it is located under http://y.xxx.com/...?wsdl
How to configure the server.xml correctly? I am using a default server.xml with one addition, namely the host config as mentioned above.
Any help on this?
Mike
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145989#4145989
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145989
From do-not-reply at jboss.com Wed Apr 23 03:19:53 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Wed, 23 Apr 2008 03:19:53 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: How to log entire incoming and
outgoing message?
Message-ID: <12542680.1208935193641.JavaMail.jboss@colo-br-02.atl.jboss.com>
Try also this:
http://jbws.dyndns.org/mediawiki/index.php?title=Records_management
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146055#4146055
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146055
From do-not-reply at jboss.com Wed Apr 23 03:31:16 2008
From: do-not-reply at jboss.com (getshantanu)
Date: Wed, 23 Apr 2008 03:31:16 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Steps for implementing WS-Security
in JBoss using Userna
Message-ID: <2019157.1208935876956.JavaMail.jboss@colo-br-02.atl.jboss.com>
I am facing the exact problem as mentioned by - bensonfungjava. When is the 2.0.5 version going to be released. This issue is very critical for my next release!
Also if anyone has found a workaround/fix pls post it here!
-Shantanu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146058#4146058
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146058
From do-not-reply at jboss.com Wed Apr 23 03:49:02 2008
From: do-not-reply at jboss.com (joshua.dev)
Date: Wed, 23 Apr 2008 03:49:02 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: JbossWS 2.0.3GA installation fails
on JBoss AS 4.2.1.GA
Message-ID: <33416913.1208936942739.JavaMail.jboss@colo-br-02.atl.jboss.com>
Installation failed again with the same result. I re-downloaded JBoss AS 4.2.1.GA to make sure it's the right one, downloaded http://www.jboss.org/downloading/?projectId=jbossws&url=/jbossws/downloads/jbossws-3.0.1-native-2.0.4.GA.zip , modified ant.properties, run "ant deploy-jboss421" and got errors as before. It starts with:
2008-04-23 09:40:44,725 DEBUG [org.jboss.kernel.KernelFactory] Completed JBoss Kernel construction. Duration: 14 milliseconds
| 2008-04-23 09:40:44,741 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Described: name=WSServerConfig state=Not Installed mode=Manual requiredState=Create
| java.lang.NoClassDefFoundError: org/jboss/wsf/common/management/AbstractServerConfigMBean
and ends with:
| 09:41:00,497 ERROR [MainDeployer] Could not create deployment: file:/home/joshua/java/jboss-4.2.1.GA/server/default/deploy/jbossws.sar/
| org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.wsf.container.jboss42.DeployerInterceptorJSE; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.wsf.container.jboss42.DeployerInterceptorJSE)
I'm using Ubuntu 7.10 (x86, 32 bit) with Java 1.5.0_15 from Sun.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146065#4146065
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146065
From do-not-reply at jboss.com Wed Apr 23 06:35:27 2008
From: do-not-reply at jboss.com (pramod_bs)
Date: Wed, 23 Apr 2008 06:35:27 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Steps for implementing WS-Security
in JBoss using Userna
Message-ID: <30074798.1208946927896.JavaMail.jboss@colo-br-02.atl.jboss.com>
I am not sure if there is a work around. If u can afford to change ur web service class to @Stateless this will work.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146105#4146105
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146105
From do-not-reply at jboss.com Wed Apr 23 06:57:15 2008
From: do-not-reply at jboss.com (itsjewel)
Date: Wed, 23 Apr 2008 06:57:15 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: @WebService method argument names
Message-ID: <10024440.1208948235236.JavaMail.jboss@colo-br-02.atl.jboss.com>
Isn't this a bug? Why should I annotate every parameters just to get a readable name? Is there any better workaround for this, so that Java parameters name directly got reflected to the generated wsdl without using @WebParam ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146114#4146114
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146114
From do-not-reply at jboss.com Wed Apr 23 07:26:54 2008
From: do-not-reply at jboss.com (joshua.dev)
Date: Wed, 23 Apr 2008 07:26:54 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: @WebService method argument names
Message-ID: <28041598.1208950014461.JavaMail.jboss@colo-br-02.atl.jboss.com>
Sun's reference implementation for JAX-WS behaves identically so it's not a bug of JBossWS. It's inconvenient however and against the principle of sensible defaults, like for example @WebService taking the annotated interface (or class) name as the service name.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146126#4146126
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146126
From do-not-reply at jboss.com Wed Apr 23 07:57:28 2008
From: do-not-reply at jboss.com (ljgp)
Date: Wed, 23 Apr 2008 07:57:28 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: No tests for @SchemaValidation
annotation in 3.0.1 ?
Message-ID: <30345126.1208951848521.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
> The question about where the annotation is tested remains.
And still remains...maybe I should repeat what the question was, so people do'nt have to search for it by looking through all previous posts.
The question was:
I am probably overlooking something, because I cannot find a proper test for the @SchemaValidation annotation.
There are two endpoint classes, org.jboss.test.ws.jaxws.jbws1172.ValidatingEndpoint.java and NonValidatingEndpoint.java
The annotation processor processes the @SchemaValidation annotation by adding the relevant feature to the endpoint.
However, in JBWS1172TestCase.java, the testcases ignore the defined endpoints, and instead add the validating feature to endpoints defined in the testcode. So, to me it seems the handling of the @SchemaValidation annotation is not tested here. Is there another test for this maybe ?
If I cannot get this to work, I am considering switching to the metro implementation, which should have support for this (added november last year I think).
Cheers, Luc.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146132#4146132
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146132
From do-not-reply at jboss.com Wed Apr 23 08:35:59 2008
From: do-not-reply at jboss.com (darran.lofthouse@jboss.com)
Date: Wed, 23 Apr 2008 08:35:59 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: @WebService method argument names
Message-ID: <2514174.1208954159532.JavaMail.jboss@colo-br-02.atl.jboss.com>
"itsjewel" wrote : Isn't this a bug?
This was a problem with Java 5 and before, the names assigned to parameters were not retained in the resulting .class files when you compile the class - this means at deployment time it is not possible to obtain the parameter name using reflection.
The @WebParam annotation is a workaround to get this information into the compiled .class file.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146148#4146148
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146148
From do-not-reply at jboss.com Wed Apr 23 09:47:24 2008
From: do-not-reply at jboss.com (schmil)
Date: Wed, 23 Apr 2008 09:47:24 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Cannot obtain wsdl service
Message-ID: <16288251.1208958444843.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi all,
since i upgraded my JBoss from 4.0.5 GA to 4.2.2 GA i have the following issue within my webservice.
| 2008-04-23 13:59:43,171 ERROR [OrderServiceClient] Exception during Webservice call:
| java.lang.IllegalArgumentException: Cannot obtain wsdl service: {http://localhost:8080/ina}DitaServiceHandlerService
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:172)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:134)
| at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:86)
| at org.jboss.ws.core.jaxrpc.client.ServiceImpl.(ServiceImpl.java:111)
| at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
| at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:142)
| at OrderServiceClient.sendOrders(OrderServiceClient.java:160)
|
Are there any changes i forgot ?
Here is my code:
OrderServiceClient.java
| import javax.xml.namespace.QName;
| import javax.xml.rpc.Service;
| import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
| ...
| ServiceFactoryImpl factory = new ServiceFactoryImpl();
| URL wsdlURL = Thread.currentThread().getContextClassLoader().getResource("META-INF/service/DitaServiceHandler.xml");
| URL mappingURL = Thread.currentThread().getContextClassLoader().getResource("META-INF/service/jaxrpc-mapping.xml");
| QName qname = new QName("http://localhost:8080/ina", "DitaServiceHandlerService");
| Service service = factory.createService(wsdlURL, qname, mappingURL);
|
DitaServiceHandler.xml
|
| ...
|
jaxrpc-mapping.xml
|
| ws.client
| urn:ina:ws:dita:de
|
| ...
|
Thanks in advance.
Lars
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146188#4146188
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146188
From do-not-reply at jboss.com Wed Apr 23 10:55:07 2008
From: do-not-reply at jboss.com (rruppel)
Date: Wed, 23 Apr 2008 10:55:07 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: How to Define WebService URL?
Message-ID: <17191977.1208962507287.JavaMail.jboss@colo-br-02.atl.jboss.com>
wow
thanks very much
I will try it now
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146216#4146216
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146216
From do-not-reply at jboss.com Wed Apr 23 11:47:51 2008
From: do-not-reply at jboss.com (thoste)
Date: Wed, 23 Apr 2008 11:47:51 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Can I install jboss 3.0.1 over jbossAS
4.2.2 + jbossws-v201
Message-ID: <12854918.1208965671221.JavaMail.jboss@colo-br-02.atl.jboss.com>
I installed JBossAS v4.2.2 with native WS version 2.0.1 SP2 (according to jmx-console).
Can I now just download:
jbossws-3.0.1-native-2.0.4GA
an install it on my existing JBoss ? Are they compatible?
How do I upgrade in detail?
Why are there two version numbers ("3.0.1" and "2.0.4" embedded in the
download archive name (see above) ) ?
What is the real version of WS component?
Thomas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146242#4146242
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146242
From do-not-reply at jboss.com Wed Apr 23 12:54:15 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Wed, 23 Apr 2008 12:54:15 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Can I install jboss 3.0.1 over
jbossAS 4.2.2 + jbossws-v
Message-ID: <11483562.1208969655741.JavaMail.jboss@colo-br-02.atl.jboss.com>
"thoste" wrote : I installed JBossAS v4.2.2 with native WS version 2.0.1 SP2 (according to jmx-console).
|
| Can I now just download:
|
| jbossws-3.0.1-native-2.0.4GA
|
| an install it on my existing JBoss ? Are they compatible?
|
Yes
"thoste" wrote :
| How do I upgrade in detail?
|
See install instructions that are included in the distribution
"thoste" wrote :
| Why are there two version numbers ("3.0.1" and "2.0.4" embedded in the
| download archive name (see above) ) ?
| What is the real version of WS component?
|
Don't be confused. We will change the naming scheme with next release.
Let's say it's 3.0.1 ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146268#4146268
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146268
From do-not-reply at jboss.com Wed Apr 23 13:47:09 2008
From: do-not-reply at jboss.com (thoste)
Date: Wed, 23 Apr 2008 13:47:09 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - What is the difference between using
javaee.jar and jsr181-a
Message-ID: <23376677.1208972829250.JavaMail.jboss@colo-br-02.atl.jboss.com>
As far as I understood both jar archives contain required javax.jws.* classes for the compilation of JAX-WS web services.
So when do I use which jar file in detail?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146280#4146280
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146280
From do-not-reply at jboss.com Wed Apr 23 19:45:54 2008
From: do-not-reply at jboss.com (hbpost)
Date: Wed, 23 Apr 2008 19:45:54 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Session Bean vs. POJO
Message-ID: <8179845.1208994355008.JavaMail.jboss@colo-br-02.atl.jboss.com>
Please forgive the newbile nature of this question, but is there any advantage to implementing a web service as an EJB over a POJO.
If one were starting fresh and had no requirement to access the service as a remote bean, would any functionality be lost, or behavior be different, between a POJO and EJB?
Thanks,
Herman Post
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146372#4146372
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146372
From do-not-reply at jboss.com Thu Apr 24 04:17:51 2008
From: do-not-reply at jboss.com (wangfei90)
Date: Thu, 24 Apr 2008 04:17:51 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: ERROR
[org.jboss.wsf.stack.jbws.RequestHandlerImpl] Cann
Message-ID: <1400451.1209025071158.JavaMail.jboss@colo-br-02.atl.jboss.com>
I got the same error log message. Could anyone help me?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146428#4146428
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146428
From do-not-reply at jboss.com Thu Apr 24 06:40:38 2008
From: do-not-reply at jboss.com (rhcp_1415)
Date: Thu, 24 Apr 2008 06:40:38 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Binding custom Exception field fails
Message-ID: <9810430.1209033638626.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi there,
I'm trying to make a simple hallo World with a parameter and a custom exception that has its own field. Without the extra field in the exception it works fine. Server start up fine but when I call my webservice with the field "naam" filled in with "kaboom" (with this value the exception is thrown) this is what I get:
| 08:48:41,921 ERROR [RequestHandlerImpl] Error processing web service request
|
| org.jboss.ws.WSException: org.jboss.xb.binding.JBossXBRuntimeException: Failed to find read method or field for property 'typeFout' in class nl.havermans.rhcp.boodschappen.webservice.EWebserviceException
|
| at org.jboss.ws.WSException.rethrow(WSException.java:68)
|
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:310)
|
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
|
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
|
| at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
|
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
|
|
The problem is that the property really is in the class nl.havermans.rhcp.boodschappen.webservice.EWebserviceException, I even tried to make the field itself public but it does not help. Does anyone know why this is happening?
Can anyone have a look at this?
| /**
| *
| */
| package nl.havermans.rhcp.boodschappen.webservice;
|
| import java.rmi.RemoteException;
|
| /**
| * @author RHCP
| *
| */
| public interface IHalloWereldService extends java.rmi.Remote {
| public String zegMijHallo(String naam) throws EWebserviceException, RemoteException;
| }
|
| /**
| *
| */
| package nl.havermans.rhcp.boodschappen.webservice;
|
| import java.rmi.RemoteException;
|
| import org.apache.log4j.Logger;
|
| /**
| * @author RHCP
| *
| */
| public class HalloWereldService implements IHalloWereldService {
| Logger _log = Logger.getLogger(HalloWereldService.class);
|
| /**
| * @throws EWebserviceException
| * @see nl.havermans.rhcp.boodschappen.webservice.IHalloWereldService#zegMijHallo(java.lang.String)
| */
| public String zegMijHallo(String naam) throws RemoteException, EWebserviceException {
| _log.info("Start zegMijHallo: " + naam);
| String antwoord = "Welkom bij mijn webservice";
| if (naam != null) {
| if (naam.equals("kaboom")) {
| throw new EWebserviceException("Exceptie test", "functioneel");
| }
| antwoord = antwoord + ": " + naam;
| }
|
| _log.info("Einde zegMijHallo");
| return antwoord;
| }
| }
|
| /**
| *
| */
| package nl.havermans.rhcp.boodschappen.webservice;
|
| /**
| * @author RHCP
| *
| */
| public class EWebserviceException extends Exception {
| /**
| *
| */
| private static final long serialVersionUID = -4539401858795964596L;
| public String typeFout = "onbekend";
|
| /**
| *
| */
| public EWebserviceException() {
| super();
| }
|
| /**
| * @param p_message
| * @param p_cause
| */
| public EWebserviceException(String p_message, Throwable p_cause) {
| super(p_message, p_cause);
| }
|
| /**
| * @param p_message
| */
| public EWebserviceException(String p_message) {
| super(p_message);
| }
|
| /**
| * @param p_message boodschap
| * @param p_typeFout type fout
| */
| public EWebserviceException(String message, String typeFout) {
| super(message);
| this.typeFout = typeFout;
| }
|
|
| /**
| * @param p_cause
| */
| public EWebserviceException(Throwable p_cause) {
| super(p_cause);
| }
|
| /**
| * @return the typeFout
| */
| public String getTypeFout() {
| return typeFout;
| }
|
| /**
| * @param p_typeFout the typeFout to set
| */
| public void setTypeFout(String typeFout) {
| this.typeFout = typeFout;
| }
|
| }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| nl.havermans.rhcp.boodschappen.webservice
| http://webservice.boodschappen.rhcp.havermans.nl/HalloWereldService
|
|
| nl.havermans.rhcp.boodschappen.webservice.EWebserviceException
| hllwrld:EWebserviceException
| complexType
|
|
| nl.havermans.rhcp.boodschappen.webservice.EWebserviceException
| hllwrld:EWebserviceException
|
|
| nl.havermans.rhcp.boodschappen.webservice.HalloWereldService
| hllwrld:HalloWereldService
|
| hllwrld:HalloWereld_Port
| hllwrld:HalloWereld_Port
|
|
|
| nl.havermans.rhcp.boodschappen.webservice.IHalloWereldService
| hllwrld:HalloWereld
| hllwrld:HalloWereld_binding
|
| zegMijHallo
| zegMijHallo
|
| 0
| java.lang.String
|
| hllwrld:GetHalloWereldRequest
| naam
| IN
|
|
|
| java.lang.String
| hllwrld:GetHalloWereldResponse
| antwoord
|
|
|
|
|
|
|
|
| HalloWereld
| WEB-INF/wsdl/HalloWereld.wsdl
| WEB-INF/HalloWereld-rpc-mapping.xml
|
| HalloWereldJSE
| hllwrld:HalloWereld_Port
| nl.havermans.rhcp.boodschappen.webservice.IHalloWereldService
|
| HalloWereldJSE
|
|
|
|
|
|
|
| BoodschappenServiceWeb
|
| Apache-Axis Servlet
| AxisServlet
|
| org.apache.axis.transport.http.AxisServlet
|
|
|
| Axis Admin Servlet
| AdminServlet
|
| org.apache.axis.transport.http.AdminServlet
|
| 100
|
|
| Hallo Wereld webservice oefening
| HalloWereldJSE
| nl.havermans.rhcp.boodschappen.webservice.HalloWereldService
| 101
|
|
| AxisServlet
| /servlet/AxisServlet
|
|
| AxisServlet
| *.jws
|
|
| AxisServlet
| /services/*
|
|
| AdminServlet
| /servlet/AdminServlet
|
|
| HalloWereldJSE
| /myJSE/HalloWereld
|
|
| index.html
| index.htm
| index.jsp
| default.html
| default.htm
| default.jsp
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146457#4146457
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146457
From do-not-reply at jboss.com Thu Apr 24 07:04:38 2008
From: do-not-reply at jboss.com (Sancheski)
Date: Thu, 24 Apr 2008 07:04:38 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - WS client returns null, why?
Message-ID: <8643077.1209035078383.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi all,
I am facing a problem when getting the response from a ws invocation. As far as I see through org.jboss.ws.core.MessageTrace logger, the ws server returns a valid response. I don't know why, this response turns to a null one in my client. Here are the log traces:
| 2008-04-24 12:33:18,838 TRACE [org.jboss.ws.core.MessageTrace] Incoming Request Message
|
|
|
|
|
|
| tel:34609214237
| 2000
| 4000
|
| Hour
| 1
|
|
| Minute
| 1
|
| DelayTolerant
|
|
|
| 2008-04-24 12:33:18,947 WARN [org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl] Cannot get port meta
| data for: {http://www.csapi.org/wsdl/parlayx/terminal_location/v2_2/service}TerminalLocation
| 2008-04-24 12:33:19,229 TRACE [org.jboss.ws.core.MessageTrace] Outgoing Request Message
|
|
|
|
| 609214237
| 2000
| 4000
|
| Hour
| 1
|
|
| Minute
| 1
|
| DelayTolerant
|
|
|
| 2008-04-24 12:33:19,229 TRACE [org.jboss.ws.core.MessageTrace] Incoming Response Message
|
|
|
|
|
| 0.1
| 0.1
| 3
|
|
|
|
| 2008-04-24 12:33:19,275 TRACE [org.jboss.ws.core.MessageTrace] Outgoing Response Message
|
|
|
|
|
|
|
My ws client implementation is:
| protected Object callWebService(ExecutionContext ctx) throws Exception {
| QName qname = new QName(
| "http://www.csapi.org/wsdl/parlayx/terminal_location/v2_2/service",
| "TerminalLocationService");
| TerminalLocationService service = new TerminalLocationService(null, qname);
| TerminalLocation stub = (TerminalLocation) service.getTerminalLocation();
| configureStub(ctx, (javax.xml.ws.BindingProvider) stub);
| return stub.getLocation((java.lang.String) getAddress(ctx),
| (int) getRequestedAccuracy(ctx), (int) getAcceptableAccuracy(ctx),
| (TimeMetric) getMaximumAge(ctx), (TimeMetric) getResponseTime(ctx),
| (DelayTolerance) getTolerance(ctx));
| }
|
Does anyone know what is going on behind the scenes? What am I doing wrong?
Thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146467#4146467
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146467
From do-not-reply at jboss.com Thu Apr 24 09:39:34 2008
From: do-not-reply at jboss.com (pramod_bs)
Date: Thu, 24 Apr 2008 09:39:34 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Cannot obtain wsdl service
Message-ID: <24647207.1209044374134.JavaMail.jboss@colo-br-02.atl.jboss.com>
I think you are using JAX-RPC client. Try using JAX-WS client.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146514#4146514
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146514
From do-not-reply at jboss.com Thu Apr 24 10:51:11 2008
From: do-not-reply at jboss.com (AceFrehley)
Date: Thu, 24 Apr 2008 10:51:11 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: JBossWS Plugin for JBossIDE /
Eclipse
Message-ID: <3525687.1209048671220.JavaMail.jboss@colo-br-02.atl.jboss.com>
Thanks for posting this. In my case, I was using RHDS w/ JBoss 4.2.2. In my case, I created a Dynamic Web Project type. I had to go into the Eclipse Preferences and change my Project facet to use Java 5.0. The default was Java 6, so I was getting the bad class version error until I changed it and redeployed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146542#4146542
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146542
From do-not-reply at jboss.com Thu Apr 24 11:26:33 2008
From: do-not-reply at jboss.com (PeterJ)
Date: Thu, 24 Apr 2008 11:26:33 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Session Bean vs. POJO
Message-ID: <229668.1209050793044.JavaMail.jboss@colo-br-02.atl.jboss.com>
There is only one difference that I can think of.
The app server maintains a pool of EJBs. The EJBs are reused for every web service request. Thus is your web service has to do some initialization, it will do it only once and can then service multiple requests. Of course, if the EJBs are not used they can time out and be removed from the pool.
For POJO web services, a new instance is created for each call. Thus if you need to do initialization, it happens for every request.
See http://www.jboss.com/index.html?module=bb&op=viewtopic&t=105344
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146549#4146549
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146549
From do-not-reply at jboss.com Thu Apr 24 12:52:10 2008
From: do-not-reply at jboss.com (hbpost)
Date: Thu, 24 Apr 2008 12:52:10 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Session Bean vs. POJO
Message-ID: <18008166.1209055930207.JavaMail.jboss@colo-br-02.atl.jboss.com>
thanks much
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146574#4146574
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146574
From do-not-reply at jboss.com Thu Apr 24 16:29:57 2008
From: do-not-reply at jboss.com (thoste)
Date: Thu, 24 Apr 2008 16:29:57 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Is wsdl2java Axis specific or can I use
it for JBossWS as we
Message-ID: <8554614.1209068997508.JavaMail.jboss@colo-br-02.atl.jboss.com>
Ok, normally the user should use wsconsume to create artefacts from WSDL.
But can I use the well known wsdl2java tools as well?
Or is this tools absolute Axis specific and should not be used for JAX-WS?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146635#4146635
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146635
From do-not-reply at jboss.com Thu Apr 24 19:23:35 2008
From: do-not-reply at jboss.com (tejasjani)
Date: Thu, 24 Apr 2008 19:23:35 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: WebService response problem
Message-ID: <5286850.1209079415825.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi ...
I am running into the same exception as the original poster, it is :
anonymous wrote :
| Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xerces/xs/XSModel
| at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:109)
| at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:85)
| at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96)
| at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:158)
| at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:129)
| at com.demandtec.webservices.impl.clients.DTTPWSClient.updatePromoStatus(DTTPWSClient.java:40)
| at com.demandtec.webservices.impl.clients.DTTPWSClient.main(DTTPWSClient.java:69)
|
I have tried the following options without success:
(1) add -Djava.endorsed.dirs to point to the jboss/lib/endorsed
(2) copy the xercesImpl.jar shipped with jboss to jre/lib/endorsed
(3) add the xercesImpl.jar shipped with jboss to the classpath
I am trying to write a very simple webservice client which can run from the command-line. I am on java 5, jboss 4.0.5 and JBossWS 1.0.4
I would really appreciate if someone could point me in the right direction here.
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146673#4146673
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146673
From eriqueliu at gmail.com Fri Apr 25 01:23:00 2008
From: eriqueliu at gmail.com (Erique)
Date: Fri, 25 Apr 2008 13:23:00 +0800
Subject: [jbossws-users] [jbossws] re: namespace problem: requested element
{http://gaws.mec.com/rta/ws/types}businessdate is not allowed
in this position in the sequence.
Message-ID:
Hello,
I'm facing the same problem. I modified the Nusoap and it's possible to
create soap messages desired by JBoss for some of the functions, but when
I'm using the same way to call other functions, the error as Douglas
reported returned.
>From the debug info, i can see the error string is:
org.jboss.ws.binding.BindingException:
org.jboss.ws.jbossxb.UnmarshalException: Failed to parse source: Requested
element {http://messages..../ws}ChargedUserRequest_1 is not allowed in this
position in the sequence. The next element should be ChargedUserRequest_1
I think this error is also caused by the problem of namespace. So I tried to
add / removed all namespaces of each operation and parameter, but it doesn't
work too. I don't know what should be the xml like.
The way works fine on another function, the difference between those 2
function is, another function doesn't set its own parameter, but only
extends the Request. So I don't have any ideas about whether there is any
relations.
The issue soap message as below.
5
456
true
WEBSERVICE
GW2K4PYMUkFmrjtKWisLZqFYx
123456
0372001208429988
and the related WSDL as the following:
Someone can help me on this problem?
Thanks,
Erique
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbossws-users/attachments/20080425/85877902/attachment.html
From do-not-reply at jboss.com Fri Apr 25 04:48:09 2008
From: do-not-reply at jboss.com (schmil)
Date: Fri, 25 Apr 2008 04:48:09 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Cannot obtain wsdl service
Message-ID: <11547470.1209113289632.JavaMail.jboss@colo-br-02.atl.jboss.com>
On changing to JAX-WS i got the following Error message:
2008-04-23 17:39:08,214 ERROR [OrderServiceClient] Exception during Webservice call:
| java.lang.IllegalArgumentException: Cannot obtain wsdl service: {http://localhost:8080/ina}DitaServiceHandlerService we have [{urn:ina:ws:dita:de}DitaServiceHandlerService]
| at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaDataInternal(JAXWSClientMetaDataBuilder.java:145)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:87)
| at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:131)
| at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61)
| at javax.xml.ws.Service.(Service.java:56)
| at javax.xml.ws.Service.create(Service.java:680)
| at OrderServiceClient.sendOrders(OrderServiceClient.java:155)
|
and after replacing
QName qname = new QName("http://localhost:8080/ina", "DitaServiceHandlerService");
with
QName qname = new QName("urn:ina:ws:dita:de", "DitaServiceHandlerService");
and copying
- jaxb-api.jar
- jboss-jaxws.jar
- jboss-saaj.jar
from client\ to lib\endorsed\
it works fine. Thanks
Lars
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146738#4146738
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146738
From do-not-reply at jboss.com Fri Apr 25 05:03:26 2008
From: do-not-reply at jboss.com (sebastiendeg)
Date: Fri, 25 Apr 2008 05:03:26 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Steps for implementing WS-Security
in JBoss using Userna
Message-ID: <6963469.1209114206912.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi Guys,
For me, it seems it works until I remove the following line from the login-config.xml which is located in JBOSS_HOME/server/default/conf
anonymous
In that case, I have an Authentication failure, it seems it does not receive the parameter.
I'm on JBossWS -3.0.1 Native.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146741#4146741
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146741
From do-not-reply at jboss.com Fri Apr 25 09:59:26 2008
From: do-not-reply at jboss.com (gekis)
Date: Fri, 25 Apr 2008 09:59:26 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: WebService client problem (JBoss
4.0.5 + jbossws-2.0.3):
Message-ID: <7414878.1209131966078.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hello.
Sorry for delay.
I've found the reason: problem with classloader was in javax.wsdl.factory.WSDLFactory.
WSDLFactory located in wsdl4j.jar, but this jar located not only in deploy\jbossws.sar but in some other places and WSDLFactory classloader was not the same as for WSDLDefinitionsFactory. Problem solved by removing duplicated wsdl4j.jar.
Tahnks for attention,
Grigory.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146822#4146822
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146822
From do-not-reply at jboss.com Fri Apr 25 11:14:06 2008
From: do-not-reply at jboss.com (ziphyre)
Date: Fri, 25 Apr 2008 11:14:06 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - jbossws first steps
Message-ID: <5458842.1209136446321.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
Being a newbie to both web services and jbossws, I'm trying to understand what should I install? jbossAS-4.2.2.GA comes with jbossws.sar folder, and with just unzipping and starting the server, I can point to http://localhost:8080/jbossws. Does it mean that I have jbossws enabled, and don't have to do anything more to work with web services? Or should I install one of the metro, native or apache web service stacks?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146842#4146842
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146842
From do-not-reply at jboss.com Fri Apr 25 11:30:10 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Fri, 25 Apr 2008 11:30:10 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: jbossws first steps
Message-ID: <29171615.1209137411020.JavaMail.jboss@colo-br-02.atl.jboss.com>
You are ready to go. JBossWS stack is part of AS you have downloaded already.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146850#4146850
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146850
From do-not-reply at jboss.com Fri Apr 25 13:31:17 2008
From: do-not-reply at jboss.com (QPool.Char)
Date: Fri, 25 Apr 2008 13:31:17 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Nullpointer at
JBossXSEntityResolver.getXMLInputSource
Message-ID: <23205735.1209144677186.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi, there already is a similar thread here: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124794#4124794 , but i think my situation is slightly different.
Using JBoss 4.2.2 with integrated jbossws, i have a locally published WSDL file that i cannot manipulate.
I have generated my client artifacts using Metro (wsimport tool), because i had to do some external binding customizations, which i dont know how to do with jbossws. I try to set up the service like this:
RepositoryService repositoryService =
| new RepositoryService(new URL("http://localhost:8080/alfresco/wsdl/repository-service.wsdl"),
| new QName("repositoryService"));
but i get this error:
| 19:03:51,328 WARN [JBossWSEntityResolver] Trying to resolve id as a non-file URL: http://www.alfresco.org/ws/model/content/1.0
| 19:03:52,703 ERROR [STDERR] java.lang.NullPointerException
| 19:03:52,703 ERROR [STDERR] at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSEntityResolver.getXMLInputSource(JBossXSEntityResolver.java:167)
| 19:03:52,703 ERROR [STDERR] at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSEntityResolver.resolveEntity(JBossXSEntityResolver.java:135)
| 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
| 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source)
| 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema(Unknown Source)
| 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown Source)
| 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown Source)
| 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
| 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
| 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
| 19:03:52,703 ERROR [STDERR] at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:182)
|
my wsd (excerptsl:
|
|
|
|
| ????
|
| ????????????
|
|
|
| ????????????
|
| ????????????
|
| ????????????
|
|
|
|
|
|
| ????????????
|
| ????????????
|
| ????????????
|
|
|
|
|
| ????????????
|
| ????????????
|
|
|
|
| ????????????
|
| ????????????
|
| ????????????
|
|
|
|
|
| ????????????
|
| ????????????
|
| ????????????
|
|
|
|
|
|
|
| ????????????....................
|
|
| ????????????
|
| Defines the SOAP headers used by this service.
|
|
| ????????????
|
|
|
| ????????????
|
|
|
| ????????????
| ............????????????
|
| ????????????
|
| Provides read and write operations against a repository.
|
| ????????????
|
|
|
|
|
|
Injection also doesnt work, as expected. And using an empty constructor also doesnt work. Any hints on this? Do i have to upgrade jbossws? Or any workaround to show the method where to search for my xsd?
thx in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146891#4146891
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146891
From do-not-reply at jboss.com Fri Apr 25 16:09:40 2008
From: do-not-reply at jboss.com (QPool.Char)
Date: Fri, 25 Apr 2008 16:09:40 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Nullpointer at
JBossXSEntityResolver.getXMLInputSource
Message-ID: <25481512.1209154180503.JavaMail.jboss@colo-br-02.atl.jboss.com>
Maybe this piece of information helps: I tried wsconsume and wsimport to generate the client artifacts, and both console outputs say:
| [wsimport] [WARNING] src-resolve.4.2: Error resolving component 'cms:Store'. It was detected that 'cms:Store' is in namespace 'http://www.alfresco.org/ws/model/content/1.0', but components from this namespace are not referenceable from schema document 'http://localhost:8080/alfresco/wsdl/repository-service.wsdl#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 'cms:Store' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'http://localhost:8080/alfresco/wsdl/repository-service.wsdl#types?schema1'.
| [wsimport] line 35 of http://localhost:8080/alfresco/wsdl/repository-service.wsdl#types?schema1
|
I cannot modify the schema, cause its not mine. So i hope that its an incorrect namespace, which means that i would have to change the prefix of "cms:Store". Is "cms" the prefix? And how can i change it without changing the schema? Again external binding customization?
Would be nice if anyone can confirm that i m on the right way....
thx in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146929#4146929
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146929
From do-not-reply at jboss.com Fri Apr 25 16:21:43 2008
From: do-not-reply at jboss.com (QPool.Char)
Date: Fri, 25 Apr 2008 16:21:43 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Nullpointer at
JBossXSEntityResolver.getXMLInputSource
Message-ID: <11911969.1209154903904.JavaMail.jboss@colo-br-02.atl.jboss.com>
Ok, think i can tell what the problem is now.
In the wsdl, the schema is importet.
|
| ???
|
|
|
| ???
| ....
|
Remember, the elements of namespace cms are missing. But inside one importet schema, there is another import:
|
| ???
|
| ???
|
|
| Alfresco Web Services for Content Management. CML - Content Manipulation Language - Draft.
|
|
|
|
|
The last schema contains the cms:Store element, which cannot be resolved by wsimport/wsconsume. So is it right that you cannot refer to a schema embedded into another schema? What can i do here, preferable without changing the schema?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146934#4146934
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146934
From do-not-reply at jboss.com Sat Apr 26 11:20:51 2008
From: do-not-reply at jboss.com (thoste)
Date: Sat, 26 Apr 2008 11:20:51 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - How to write a Client for this simple
wsconsume output?
Message-ID: <2567090.1209223251087.JavaMail.jboss@colo-br-02.atl.jboss.com>
I have difficulties to write simple Client which access an existing Web Service.
The output of wsconsume on the WSDL can be seen below.
How would such a client.java look like?
Particularly I am interested in the necessary import statements.
Which classes and *.jars do I have to include in the CLASSPATH minimally ?
package ttest.ws.sumtest;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.1.1-b03-
* Generated source version: 2.0
*
*/
@WebServiceClient(name = "SumService", targetNamespace = "http://sumtest.ws.ttest/", wsdlLocation = "http://127.0.0.1:8777/SumDemo?wsdl")
public class SumService
extends Service
{
private final static URL SUMSERVICE_WSDL_LOCATION;
static {
URL url = null;
try {
url = new URL("http://127.0.0.1:8777/SumDemo?wsdl");
} catch (MalformedURLException e) {
e.printStackTrace();
}
SUMSERVICE_WSDL_LOCATION = url;
}
public SumService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public SumService() {
super(SUMSERVICE_WSDL_LOCATION, new QName("http://sumtest.ws.ttest/", "SumService"));
}
/**
*
* @return
* returns Sum
*/
@WebEndpoint(name = "SumPort")
public Sum getSumPort() {
return (Sum)super.getPort(new QName("http://sumtest.ws.ttest/", "SumPort"), Sum.class);
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147010#4147010
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147010
From do-not-reply at jboss.com Sat Apr 26 14:51:36 2008
From: do-not-reply at jboss.com (peiguo)
Date: Sat, 26 Apr 2008 14:51:36 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Cannot expose EJB 3 as WS
Message-ID: <8658496.1209235896802.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi,
I developed a very simple EJB 3 bean, I can deploy it with no error, but the web service is not exposed.
This is what I did:
1) Wrote the code as shown below;
2) compile and jar into hello.jar;
3) copy the jar to server/default/deploy;
Please help, what did I miss? I am using 4.2.2.GA
Hello.java:
| package org.jboss.ws.hello;
|
|
| import java.rmi.Remote;
|
| import javax.jws.WebMethod;
| import javax.jws.WebService;
| import javax.jws.soap.SOAPBinding;
| import javax.jws.soap.SOAPBinding.Style;
|
| @WebService
| public interface Hello extends Remote {
| @WebMethod
| String echo(String e);
| }
|
HelloBean.java:
| package org.jboss.ws.hello;
|
|
| import javax.ejb.Remote;
| import javax.ejb.Stateless;
| import javax.jws.*;
| import javax.jws.soap.*;
|
| @Stateless
| @WebService(endpointInterface = "org.jboss.ws.hello.Hello")
| @Remote(Hello.class)
| public class HelloBean {
| public String echo(String e) {
| return "Web Service Echo + " + e;
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147022#4147022
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147022
From do-not-reply at jboss.com Sat Apr 26 17:48:10 2008
From: do-not-reply at jboss.com (peiguo)
Date: Sat, 26 Apr 2008 17:48:10 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Cannot expose EJB 3 as WS
Message-ID: <16255619.1209246491029.JavaMail.jboss@colo-br-02.atl.jboss.com>
I can resolve by specify wsdlLocation in a config.xml file. Wondering why... tried to specify this wsdlLocation using @WebService and didn't work.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147027#4147027
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147027
From do-not-reply at jboss.com Sat Apr 26 17:52:05 2008
From: do-not-reply at jboss.com (peiguo)
Date: Sat, 26 Apr 2008 17:52:05 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Cannot expose EJB 3 as WS
Message-ID: <31324171.1209246725846.JavaMail.jboss@colo-br-02.atl.jboss.com>
Checked out the specification for @WebService, it says that wsdlLocation points to a predefined wsdl, obviously does not work for my purpose here.
I still wonder whether I can avoid the config.xml file. Is it not true that EJB 3 suppose to remove the need of those xml files.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147028#4147028
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147028
From do-not-reply at jboss.com Sat Apr 26 22:26:22 2008
From: do-not-reply at jboss.com (jj_andrade)
Date: Sat, 26 Apr 2008 22:26:22 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: JBossWS Plugin for JBossIDE /
Eclipse
Message-ID: <8861143.1209263182296.JavaMail.jboss@colo-br-02.atl.jboss.com>
Anyone knows why JBossWS was discontinued?? That is a great and fantastic plug-in under eclipse. I can not believe it !! And now, where i can found out a similar plug-in with its facilities and simply!!!
Regards,
Jose
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147039#4147039
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147039
From do-not-reply at jboss.com Sun Apr 27 05:28:23 2008
From: do-not-reply at jboss.com (thoste)
Date: Sun, 27 Apr 2008 05:28:23 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Why is wsconsume stopping whole batch
script ?
Message-ID: <21184572.1209288503251.JavaMail.jboss@colo-br-02.atl.jboss.com>
>From a batch script under WinXP I called "wsconsume.bat".
Much to my surprise wsconsume terminates (after successful execution also th calling bacth script.
Why?
The calling batch script looks (simplified) like:
-------------
...
Echo Before call
D:\java\JBoss\wsconsume.bar -k htp://127.0.0.1:8080/MyService?WSDL
Echo This text should be written. But is NOT because wsconsume terminates
...
------------
Can I somehow tell wsconsume NOT to terminate its wrapping batch script?
Thomas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147050#4147050
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147050
From do-not-reply at jboss.com Mon Apr 28 02:29:02 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Mon, 28 Apr 2008 02:29:02 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Cannot expose EJB 3 as WS
Message-ID: <2938244.1209364142095.JavaMail.jboss@colo-br-02.atl.jboss.com>
Strange, it works for me.
Here's my EJB3 archive content:
| jar -tvf jaxws.jar
| 0 Mon Apr 28 08:17:42 CEST 2008 META-INF/
| 106 Mon Apr 28 08:17:40 CEST 2008 META-INF/MANIFEST.MF
| 0 Mon Apr 28 08:20:04 CEST 2008 org/
| 0 Mon Apr 28 08:20:04 CEST 2008 org/jboss/
| 0 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/
| 0 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/hello/
| 290 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/hello/Hello.class
| 834 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/hello/HelloBean.class
Here's my server console output:
| 08:22:02,562 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| 08:22:02,577 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=jaxws.jar,name=HelloBean,service=EJB3 with dependencies:
| 08:22:02,854 INFO [EJBContainer] STARTED EJB: org.jboss.ws.hello.HelloBean ejbName: HelloBean
| 08:22:02,982 INFO [EJB3Deployer] Deployed: file:/opt/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA/server/default/deploy/jaxws.jar
| 08:22:03,161 INFO [DefaultEndpointRegistry] register: jboss.ws:context=jaxws,endpoint=HelloBean
| 08:22:06,156 INFO [WSDLFilePublisher] WSDL published to: file:/opt/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA/server/default/data/wsdl/jaxws.jar/HelloBeanService9073.wsdl
| 08:22:06,504 INFO [TomcatDeployer] deploy, ctxPath=/jaxws, warUrl=.../tmp/deploy/jaxws.jar9072.war/
and I'm able to access WSDL here:
http://127.0.0.1:8080/jaxws/HelloBean?wsdl
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147110#4147110
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147110
From balanscott at gmail.com Mon Apr 28 02:47:33 2008
From: balanscott at gmail.com (Alan Scott)
Date: Mon, 28 Apr 2008 02:47:33 -0400
Subject: [jbossws-users] Testting a WebService From jbossws web page?
Message-ID:
I cannot figure out how to pass the params from a web page so I can test the
web service. I was hoping to get some insight from the web services
explorer. However, it just showed me that the web service works. How can I
determine how to pass paramaters to the service.
What would the url be to pass arg0?
http://127.0.0.1:8080/MsgEchoerService/MsgEchoer?wsdl
Here is the wsdl it generates:
*-*
*-*
*-*
* *
* *
*-* <
xs:complexType name="*MsgResponder*">
*-*
* *
* *
* *
*-* <
xs:complexType name="*MsgResponderResponse*">
*-*
* *
* *
* *
* *
* *
*-*
* *
* *
*-*
* *
* *
*-*
*-*
* *
* *
* *
* *
*-*
* *
*-*
* *
*-*
* *
* *
*-*
* *
* *
* *
* *
*-*
*-*
* *
* *
* *
* *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbossws-users/attachments/20080428/2a052398/attachment.html
From do-not-reply at jboss.com Mon Apr 28 09:41:40 2008
From: do-not-reply at jboss.com (safetytrick)
Date: Mon, 28 Apr 2008 09:41:40 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - POP Attachment
Message-ID: <3318290.1209390100684.JavaMail.jboss@colo-br-02.atl.jboss.com>
I'm supporting a JBoss application that implements mail-ra.rar to pull down pop emails, this works great except in one case, I have a client that is sending emails to his pop account using c#.
for (i = 0; i < list.Items.Count; i++)
|
| {
|
| cst = list.Items.ToString();
|
| Attachment att = new Attachment(cst);
|
| MailMsg.Attachments.Add(att);
|
| }
When he checks this email with any old pop client, say, Outlook the attachment is there however JBoss doesn't seem to see this attachment. I've suggested that C# is probably not attaching necessary headers but I don't know if that is correct? What would you do next to troubleshoot this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147229#4147229
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147229
From do-not-reply at jboss.com Mon Apr 28 10:23:19 2008
From: do-not-reply at jboss.com (AceFrehley)
Date: Mon, 28 Apr 2008 10:23:19 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Writing a WS cliente
Message-ID: <21755319.1209392599217.JavaMail.jboss@colo-br-02.atl.jboss.com>
This is a classpath issue. I had this problem too trying to run a WS client from Eclipse. It took me a while, but in Eclipse, I did the following:
- Add * ONLY * the xercesImpl.jar from the server lib/endorsed directory to
your build path (DO NOT ADD resolver.jar or any of the other jars from here)
- Add all jars in the server/client directory to your classpath
- Add the stax-api.jar from the server/default/deploy/jboss.sar directory
This solved the problem for me.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147247#4147247
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147247
From do-not-reply at jboss.com Mon Apr 28 14:28:09 2008
From: do-not-reply at jboss.com (PeterJ)
Date: Mon, 28 Apr 2008 14:28:09 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Why is wsconsume stopping whole
batch script ?
Message-ID: <26255294.1209407289746.JavaMail.jboss@colo-br-02.atl.jboss.com>
In Windows, when one batch file calls another in the way you have done so, once that second batch file completes, that is it. There is no return to the original batch file.
If you want the processing to return to the original batch file, use the "call" command:
Echo Before call
call D:\java\JBoss\wsconsume.bar -k htp://127.0.0.1:8080/MyService?WSDL
Echo This text WILL be written!!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147320#4147320
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147320
From do-not-reply at jboss.com Mon Apr 28 16:05:44 2008
From: do-not-reply at jboss.com (thoste)
Date: Mon, 28 Apr 2008 16:05:44 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web
service files in JBoss ?
Message-ID: <31318485.1209413144796.JavaMail.jboss@colo-br-02.atl.jboss.com>
"richard.opalka at jboss.com" wrote : Please, read our documentation first.
| If still confused download source distribution and try to find the example that fits your needs.
| If still confused post to user forum ;)
Yes, I read the documentation and I thought this is the user forum.
Ok, lets explain the problem in more detail:
I tried out the deployment as you suggested. When I put the *.jws and web.xml (see both below)
into the deployment directory I got the error shown at the bottom.
So what wrong?
MyWebServiceClass.jws:
@WebService( name="Sum", targetNamespace = "http://sumtest.ws.ptest/", serviceName = "aaa" )
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE, style = SOAPBinding.Style.DOCUMENT)
public class MyWebServiceClass {
@WebMethod
public double myWebServiceMethod( String job, double x ) {
if ("square".equalsIgnoreCase(job) )
return x * x;
if ("root".equalsIgnoreCase(job) )
return Math.sqrt( x );
return 0.; }
}
web.xml:
MyWebServiceClass
MyWebServiceClass
MyWebServiceClass
/*
Result in JBoss:
14:34:25,640 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo at e95e7022 { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws
altDD: null
lastDeployed: 1209385176890
lastModified: 1209385176890
mbeans:
org.jboss.deployment.DeploymentInfo at dc36ff7c { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml
altDD: null
lastDeployed: 1209385865421
lastModified: 1209385865421
mbeans:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo at e95e7022 { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws
altDD: null
lastDeployed: 1209385176890
lastModified: 1209385176890
mbeans:
org.jboss.deployment.DeploymentInfo at dc36ff7c { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml
altDD: null
lastDeployed: 1209385865421
lastModified: 1209385865421
mbeans:
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147350#4147350
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147350
From do-not-reply at jboss.com Mon Apr 28 16:46:52 2008
From: do-not-reply at jboss.com (PeterJ)
Date: Mon, 28 Apr 2008 16:46:52 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web
service files in JBoss ?
Message-ID: <17132433.1209415612699.JavaMail.jboss@colo-br-02.atl.jboss.com>
thoste, I think that Ricard encouraged you to read the documentation because if you did you would find that the extension .jws is not a valid extension. That extension is specific to Axis. This explains the error message:
url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws
state: INIT_WAITING_DEPLOYER
If your web service is an EJB, package it in *.ear. If it is a POJO, package it in *.war or *.wsr.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147359#4147359
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147359
From do-not-reply at jboss.com Mon Apr 28 18:15:50 2008
From: do-not-reply at jboss.com (peiguo)
Date: Mon, 28 Apr 2008 18:15:50 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Cannot expose EJB 3 as WS
Message-ID: <29605528.1209420950643.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hm... After I read your reply, I tried two things but both failed, not sure what we did differently (I am using 4.2.2.GA).
1) I removed the config.xml file, when I deploy I got this:
| 15:07:45,192 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- Packages waiting for a deployer ---
| org.jboss.deployment.DeploymentInfo at 9f91cc6f { url=file:/C:/jboss-4.2.2.GA/serve
| r/default/deploy/endpoint/Hello.class }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/endpoint/Hello.class
| altDD: null
| lastDeployed: 1209420465192
| lastModified: 1209420465192
| mbeans:
|
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo at 9f91cc6f { url=file:/C:/jboss-4.2.2.GA/serve
| r/default/deploy/endpoint/Hello.class }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/endpoint/Hello.class
| altDD: null
| lastDeployed: 1209420465192
| lastModified: 1209420465192
| mbeans:
|
2) the config.xml is still removed like option, but I added wsdlLocation in my code like this:
| @Stateless
| @WebService(endpointInterface="org.jboss.tutorial.webservice.bean.Calculator", wsdlLocation="http://localhost:8080/tutorial/CalculatorBean?wsdl")
|
And I got this:
| 15:10:27,020 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.2
| .2.GA/server/default/deploy/tutorial.jar
| org.jboss.ws.metadata.wsdl.WSDLException: Cannot parse wsdlLocation: http://loca
| lhost:8080/tutorial/CalculatorBean?wsdl
| at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefini
| tionsFactory.java:183)
| at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsF
| actory.java:108)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.pr
| ocessOrGenerateWSDL(JAXWSWebServiceMetaDataBuilder.java:373)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.bu
| ildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:158)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupP
| roviderOrWebService(JAXWSServerMetaDataBuilder.java:50)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMet
| aData(JAXWSMetaDataBuilderEJB3.java:78)
| at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(Unifi
| edMetaDataDeploymentAspect.java:71)
| at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy
| (DeploymentAspectManagerImpl.java:115)
| at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep
| loyerHook.java:97)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt
| erceptor.java:90)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
| start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
| ptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy34.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| or.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| BeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
| tScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
| canner.java:610)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| run(AbstractDeploymentScanner.java:225)
| Caused by: java.io.FileNotFoundException: http://localhost:8080/tutorial/Calcula
| torBean?wsdl
| at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
| nection.java:1151)
| at java.net.URL.openStream(URL.java:1007)
| at org.jboss.ws.core.utils.ResourceURL.openStream(ResourceURL.java:57)
| at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefini
| tionsFactory.java:166)
| ... 37 more
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147380#4147380
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147380
From do-not-reply at jboss.com Mon Apr 28 18:55:53 2008
From: do-not-reply at jboss.com (soch)
Date: Mon, 28 Apr 2008 18:55:53 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Newbee Q: Returning hashmaps
Message-ID: <30504655.1209423353408.JavaMail.jboss@colo-br-02.atl.jboss.com>
I am trying to take the simple echo example (http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS_JAX-WS_Tools) to the next level and running into problem.
I want to return a hashmap instead of the string.
Instead of the client printing the hasmap contents it prints the address of the the hashmap.
I am using the new tools: wsconsume, wsprovide & wsrunclient.
Here's the code:
GetPM.java:
=========
package getpm;
|
| import java.util.HashMap;
|
| @javax.jws.WebService
| public class GetPM
| {
|
| HashMap map = new HashMap();
|
| public HashMap getPM()
| {
| map.put("key1", "value1");
| map.put("key2", "value2");
| map.put("key3", "value3");
| System.out.println("From Server:" + map.toString());
| return map;
| }
| }
I am using the same web.xml as in the echo example -- is this were I am going wrong?
web.xml
=======
|
|
| GetPM
| getpm.GetPM
|
|
|
| GetPM
| /GetPM
|
|
I created the getpm.war file & deployed it on the jboss AS.
Using wsconsume created the client files using the online version of service wsdl file: wsconsume -k http://localhost:8080/getpm/GetPM?wsdl
The client then calls the service using the following
GetPMclient.java:
=============
import getpm.*;
|
| public class GetPMclient
| {
| public static void main(String args[])
| {
| GetPMService service = new GetPMService();
| GetPM pm = service.getGetPMPort();
| System.out.println("Server said: " + pm.getPM());
|
| //HashMap hm = (HashMap) pm.getPM();
| //System.out.println(hm.toString());
| }
| }
On the server stdout I get the hashmap printed correctly, but on the client side instead of the hashmap I get the reference of the hashmap as below:
getpm.HashMap at 1a0b53e
instead of
{key1=value1, key2=value2, key3=value3}
C:\....\webservices\getpm\client\output>wsrunclient GetPMclient
log4j:WARN No appenders could be found for logger (org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder).
log4j:WARN Please initialize the log4j system properly.
Server said:
getpm.HashMap at 1a0b53e
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147385#4147385
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147385
From do-not-reply at jboss.com Mon Apr 28 21:28:13 2008
From: do-not-reply at jboss.com (PeterJ)
Date: Mon, 28 Apr 2008 21:28:13 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Cannot expose EJB 3 as WS
Message-ID: <27655622.1209432493895.JavaMail.jboss@colo-br-02.atl.jboss.com>
Try renaming the directory server/default/deploy/endpoint to server/default/deploy/endpoint.jar. You need the .jar suffix to let the deployer know what type of application to deploy.
Remove the wsdlLocation attribute. When you use it, it should reference a file in the archive, like this:
wsdlLocation="wsdl/CalculatorBeanService.wsdl"
And the file must exist in the archive.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147397#4147397
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147397
From do-not-reply at jboss.com Tue Apr 29 02:15:46 2008
From: do-not-reply at jboss.com (thoste)
Date: Tue, 29 Apr 2008 02:15:46 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web
service files in JBoss ?
Message-ID: <31915212.1209449746911.JavaMail.jboss@colo-br-02.atl.jboss.com>
"PeterJ" wrote : thoste, I think that Ricard encouraged you to read the documentation because if you did you would find that the extension .jws is not a valid extension. That extension is specific to Axis. This explains the error message:
|
| url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws
| state: INIT_WAITING_DEPLOYER
|
| If your web service is an EJB, package it in *.ear. If it is a POJO, package it in *.war or *.wsr.
Ok, this is an answer. Thank you.
"pramod_bs" answer (=second posting) indicated that there is a way of doing this.
BTW: The doc explains how to do it and NOT how to do it NOT. So the docs does not say: *.jws is NOT possible.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147421#4147421
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147421
From do-not-reply at jboss.com Tue Apr 29 02:52:51 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Tue, 29 Apr 2008 02:52:51 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web
service files in JBoss ?
Message-ID: <31818481.1209451971791.JavaMail.jboss@colo-br-02.atl.jboss.com>
"PeterJ" wrote : thoste, I think that Ricard encouraged you to read the documentation because if you did you would find that the extension .jws is not a valid extension.
Exactly
"" wrote : The doc explains how to do it and NOT how to do it NOT. So the docs does not say: *.jws is NOT possible.
You're right. But remember this user forum thread will help other users in the future ;) This is the purpose of the user forum.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147427#4147427
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147427
From do-not-reply at jboss.com Tue Apr 29 05:55:13 2008
From: do-not-reply at jboss.com (mikkus)
Date: Tue, 29 Apr 2008 05:55:13 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Newbee Q: Returning hashmaps
Message-ID: <2528217.1209462913280.JavaMail.jboss@colo-br-02.atl.jboss.com>
toString() outputs the contents of the HashMap only if the class generated is actually a HashMap, otherwise it outputs the java class instance name.
Most probably, wsconsume generated a class named HashMap, instead of using java.util.HashMap. This class is not actually a hashmap but a representation of the web service return data. Most probably, you'll need to convert that data to an actual hashmap.
I notice you commented out the cast to java.util.HashMap, probably you got a ClassCastException here? Seeing the class generated by wsconsume and related wsdl would help.
Your web.xml file should not be the problem. It just exposes the webservice, and since you're able to invoke it, it is doing its job.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147462#4147462
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147462
From do-not-reply at jboss.com Tue Apr 29 06:38:20 2008
From: do-not-reply at jboss.com (fredatwork)
Date: Tue, 29 Apr 2008 06:38:20 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Install failure
Message-ID: <3179163.1209465500421.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hello,
I trying to install JBoss WS 3.0.1 on top of my JBoss AS 4.2.1 application server.
I'm following the instructions given here : http://jbws.dyndns.org/mediawiki/index.php?title=Install_JBossWS
I reveive this as I try to install JBoss WS:
| C:\Programs\jbossws-native-dist>ant deploy-jboss421
| [loadfile] c:\programs\jboss\server\default\deploy\jbossws.sar\jbossws-deploy.conf doesn't exist
|
| BUILD FAILED
| C:\Programs\jbossws-native-dist\build\build-deploy.xml:63: The following error occurred while executing this line:
| C:\Programs\jbossws-native-dist\build\jbossws-deploy-macros.xml:283: Unable to delete file c:\programs\jboss\server\default\lib\jboss-jaxrpc.jar
|
| Total time: 0 seconds
| C:\Programs\jbossws-native-dist>
|
I cannot see what's wrong with the ant files.
Any idea regarding this installation failure ?
Fred
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147473#4147473
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147473
From do-not-reply at jboss.com Tue Apr 29 08:06:27 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Tue, 29 Apr 2008 08:06:27 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Install failure
Message-ID: <11891548.1209470787155.JavaMail.jboss@colo-br-02.atl.jboss.com>
It seems that other Windows process locked this file. Isn't your JBoss AS running?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147482#4147482
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147482
From do-not-reply at jboss.com Tue Apr 29 09:15:45 2008
From: do-not-reply at jboss.com (mxs)
Date: Tue, 29 Apr 2008 09:15:45 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: NullPointerException from
JBossXSEntityResolver
Message-ID: <28763950.1209474945140.JavaMail.jboss@colo-br-02.atl.jboss.com>
There is an ant/eclipse project to reproduce the problem right here:
http://page.mi.fu-berlin.de/schmidtm/jbossws-jaxb/TestJBossWS.zip
The download is quite big as it contains all those library dependencies.
Run ant to get a WAR that can be used for deployment on JBoss 4.2.2GA. Also tried with the current jbossws-3.0.1-native-2.0.4.GA, but seems to be not fixed yet.
The included WSDL was generated using wsprovide, now doing wsconsume to generate the service interface which is then implemented by one simple class.
I might also upload the original sources used to generate the WSDL if necessary.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147501#4147501
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147501
From do-not-reply at jboss.com Tue Apr 29 10:10:43 2008
From: do-not-reply at jboss.com (felle82)
Date: Tue, 29 Apr 2008 10:10:43 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Error deploying EJB 3 Webservice on
Jboss 5.0.0 Beta 4
Message-ID: <372746.1209478243267.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi all,
When I deploy my ear containig a Webservice implementation I have a Nested Exeption:
15:52:40,102 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/D:/DEV/jboss-5.0.0.Beta4/server/default/deploy/SII_PublishSubscribeEAR.ear state=PostClassLoader mo
| de=Manual requiredState=Real
| org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/D:/DEV/jboss-5.0.0.Beta4/server/default/deploy/SII_PublishSubscribeEAR.ear/SII_PublishSubscribe.jar
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:175)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:246)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.wsf.spi.deployment.WSFDeploymentException: javax.xml.ws.WebServiceException: org.dom4j.DocumentException: java.sun.com Nested exception: java.sun.com
| at org.jboss.wsf.spi.deployment.WSFDeploymentException.rethrow(WSFDeploymentException.java:54)
| at org.jboss.wsf.container.jboss50.WebAppDeploymentAspect.create(WebAppDeploymentAspect.java:87)
| at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
| at org.jboss.wsf.container.jboss50.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:95)
| at org.jboss.wsf.container.jboss50.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:63)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| ... 18 more
| Caused by: javax.xml.ws.WebServiceException: org.dom4j.DocumentException: java.sun.com Nested exception: java.sun.com
| at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:92)
| at org.jboss.wsf.container.jboss50.WebAppDeploymentAspect.create(WebAppDeploymentAspect.java:74)
| ... 23 more
| Caused by: org.dom4j.DocumentException: java.sun.com Nested exception: java.sun.com
| at org.dom4j.io.SAXReader.read(SAXReader.java:484)
| at org.dom4j.io.SAXReader.read(SAXReader.java:343)
| at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:111)
| at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:84)
| ... 24 more
| 15:52:40,350 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| *** CONTEXTS IN ERROR: Name -> Error
|
| vfsfile:/D:/DEV/jboss-5.0.0.Beta4/server/default/deploy/SII_PublishSubscribeEAR.ear -> org.dom4j.DocumentException: java.sun.com Nested exception: java.sun.com
My java Class and Interface look as follows:/**
| *
| */
| package com.test.sii.pubsub;
|
| import java.util.ArrayList;
| import java.util.Date;
|
| import javax.ejb.EJB;
| import javax.ejb.Stateless;
| import javax.jws.WebService;
|
| import com.test.sii.pubsub.entity.Subscriber;
|
| /**
| *
|
| * @author I052946
| *
| */
| @WebService(serviceName="PublishSubscribeService", endpointInterface="com.test.sii.pubsub.PublishSubscribeRemote", portName="PublishSubscribeBeanPort", targetNamespace="http://test.com/sii/pubsub/")
| @Stateless
| public class PublishSubscribeBean implements PublishSubscribeRemote{
|
| @EJB
| private SubscriptionManagerLocal subscriptionManagerLocal;
|
| public String notify(String topic,String Message) {
| ArrayList subscribers = subscriptionManagerLocal.getSubscriberForTopics(topic);
| for (Subscriber subscriber : subscribers) {
| notifySubscriber(subscriber);
| }
| return "Notified";
| }
|
| public String subscribe(String topic, String endpoint, Date duration) {
| Subscriber subscriper = new Subscriber();
| subscriper.setEndpoint(endpoint);
| int id = subscriptionManagerLocal.registerSubscription(topic, subscriper, duration);
| return "Subscription with id "+ id+" was registered at "+duration;
| }
|
|
| private void notifySubscriber(Subscriber subscriber){
|
| }
| }
|
/**
| *
| */
| package com.test.sii.pubsub;
|
| import java.util.Date;
|
| import javax.ejb.Remote;
| import javax.jws.WebMethod;
| import javax.jws.WebService;
| import javax.jws.WebParam;
|
| /**
| * @author I052946
| *
| */
| @WebService(name="PublishSubscribeRemote", targetNamespace="http://test.com/sii/pubsub/")
| @Remote
| public interface PublishSubscribeRemote {
|
|
| @WebMethod(operationName="notify")
| public String notify(@WebParam(name="topic")
| String topic, at WebParam(name="message")
| String message);
|
| @WebMethod(operationName="subscribe")
| public String subscribe(@WebParam(name="topic")
| String topic, at WebParam(name="endpoint")
| String endpoint, @WebParam(name="duration")
| Date duration);
|
| }
|
Any hints?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147517#4147517
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147517
From do-not-reply at jboss.com Tue Apr 29 10:28:30 2008
From: do-not-reply at jboss.com (soch)
Date: Tue, 29 Apr 2008 10:28:30 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Newbee Q: Returning hashmaps
Message-ID: <23850261.1209479310258.JavaMail.jboss@colo-br-02.atl.jboss.com>
"mikkus" wrote : toString() outputs the contents of the HashMap only if the class generated is actually a HashMap, otherwise it outputs the java class instance name.
|
| Most probably, wsconsume generated a class named HashMap, instead of using java.util.HashMap. This class is not actually a hashmap but a representation of the web service return data. Most probably, you'll need to convert that data to an actual hashmap.
|
| I notice you commented out the cast to java.util.HashMap, probably you got a ClassCastException here? Seeing the class generated by wsconsume and related wsdl would help.
|
| Your web.xml file should not be the problem. It just exposes the webservice, and since you're able to invoke it, it is doing its job.
Thanks mikkus. Yes, wsconsume creates it's own HashMap which inherits from it's own AbstractMap.
How do I convert the wsconsume generated HashMap to java.util.HashMap? I believe this needs to be done at the client side.
Data below:
C:\..\test\webservices> wsconsume -k http://localhost:8080/getpm/GetPM?wsdl
JBossWS-Native stack deployed
parsing WSDL...
generating code...
getpm\AbstractMap.java
getpm\GetPM.java
getpm\GetPMResponse.java
getpm\GetPMService.java
getpm\GetPM_Type.java
getpm\HashMap.java
getpm\ObjectFactory.java
getpm\package-info.java
HashMap.java:
| package getpm;
|
| import javax.xml.bind.annotation.XmlAccessType;
| import javax.xml.bind.annotation.XmlAccessorType;
| import javax.xml.bind.annotation.XmlType;
|
|
| /**
| * Java class for hashMap complex type.
| *
| *
The following schema fragment specifies the expected content contained within this class.
| *
| *
| *
| *
| *
| *
| *
| *
| *
| *
| *
| *
| *
| */
| @XmlAccessorType(XmlAccessType.FIELD)
| @XmlType(name = "hashMap")
| public class HashMap
| extends AbstractMap
| {
|
|
| }
AbstractMap.java:
package getpm;
|
| import javax.xml.bind.annotation.XmlAccessType;
| import javax.xml.bind.annotation.XmlAccessorType;
| import javax.xml.bind.annotation.XmlType;
|
|
| /**
| * Java class for abstractMap complex type.
| *
| *
The following schema fragment specifies the expected content contained within this class.
| *
| *
| *
| *
| *
| *
| *
| *
| *
| *
| *
| *
| *
| */
| @XmlAccessorType(XmlAccessType.FIELD)
| @XmlType(name = "abstractMap")
| public abstract class AbstractMap {
|
|
| }
The generated service WSDL under C:\jboss-4.2.2.GA\server\default\data\wsdl\getpm.war
GetPMService31986.wsdl:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I tried the convertion but got errors:
C:\Documents and Settings\jaina\My Documents\Work\CODE\test\webservices\getpm\output>wsrunclient GetPMclient
log4j:WARN No appenders could be found for logger (org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder).
log4j:WARN Please initialize the log4j system properly.
getpm.HashMap at 1a0b53e
C:\Documents and Settings\jaina\My Documents\Work\CODE\test\webservices\getpm\output>javac GetPMclient.java
GetPMclient.java:13: inconvertible types
found : getpm.HashMap
required: java.util.HashMap
java.util.HashMap hm = (java.util.HashMap) pm.getPM();
^
1 error
import getpm.*;
|
| import java.util.HashMap;
|
| public class GetPMclient
| {
| public static void main(String args[])
| {
|
| GetPMService service = new GetPMService();
| GetPM pm = service.getGetPMPort();
| //System.out.println("Server said: " + pm.getPM());
| java.util.HashMap hm = (java.util.HashMap) pm.getPM();
| System.out.println(hm.toString());
|
|
|
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147520#4147520
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147520
From do-not-reply at jboss.com Tue Apr 29 12:07:42 2008
From: do-not-reply at jboss.com (mikkus)
Date: Tue, 29 Apr 2008 12:07:42 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Newbee Q: Returning hashmaps
Message-ID: <10614864.1209485262626.JavaMail.jboss@colo-br-02.atl.jboss.com>
It seems the wsdl file has an empty type for HashMap, see this:
|
|
|
The abstractMap type contains nothing (an empty sequence). So there seems to be a problem with mapping the original type on the server side. What version on JBossWS are you using? The one that comes bundled on JBoss AS 4.2.x?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147569#4147569
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147569
From do-not-reply at jboss.com Tue Apr 29 12:38:33 2008
From: do-not-reply at jboss.com (felle82)
Date: Tue, 29 Apr 2008 12:38:33 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Error deploying EJB 3 Webservice on
Jboss 5.0.0 Beta 4
Message-ID: <28267778.1209487113855.JavaMail.jboss@colo-br-02.atl.jboss.com>
I found the problem
http://jira.jboss.org/jira/browse/JBWS-1985
Insert:
reader.setEntityResolver(new JBossEntityResolver());
between:
SAXReader reader = new SAXReader();
| Document document = reader.read(source);
in th sourcefile org.jboss.wsf.container.jboss42.WebXMLRewriterImpl and rebuild the server.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147583#4147583
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147583
From do-not-reply at jboss.com Tue Apr 29 14:20:57 2008
From: do-not-reply at jboss.com (marcel_stanley)
Date: Tue, 29 Apr 2008 14:20:57 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Can not find truststore url
Message-ID: <26260135.1209493257576.JavaMail.jboss@colo-br-02.atl.jboss.com>
I got the same error at the same platform an I still have no idea why its happening...
I'm working on that right now.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147608#4147608
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147608
From do-not-reply at jboss.com Tue Apr 29 15:17:45 2008
From: do-not-reply at jboss.com (alessio.soldano@jboss.com)
Date: Tue, 29 Apr 2008 15:17:45 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Can not find truststore url
Message-ID: <30759796.1209496666103.JavaMail.jboss@colo-br-02.atl.jboss.com>
This is ot a ws issue, did you both properly configured the ssl/https connector in the jboss-web server.xml providing the trustore location?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147628#4147628
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147628
From do-not-reply at jboss.com Tue Apr 29 15:39:13 2008
From: do-not-reply at jboss.com (AceFrehley)
Date: Tue, 29 Apr 2008 15:39:13 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Java to XML for web services
Message-ID: <1487749.1209497953272.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi. I have a java pojo that I am converting to an XML string and then returning from a web service (JAXB). I have to make sure that the data is returned in a CDATA block, so I used XMLSerializer from this example as a guide:
|
| https://jaxb.dev.java.net/faq/JaxbCDATASample.java
|
|
Everything works fine, but I have read that in Xerces 2.9.0, the XMLSerializer and OutputFormat classes are deprecated. What is the equivalent (non-deprecated) code for transforming a Java pojo to XML? I cannot find any examples online that do the equivalent type of this transformation using STAX or DOM.If anybody could share an example or their approach to doing this, that would be great.
Also, I am using the Marshaller from JAXB, but just to reiterate, I also need the XMLSerializer functionality which prevents <> characters from being returned as HTML < and > tags to the client.
Also, how can I find out what version of Xerces is used for a particular version of JBoss AS? I would like to know the Xerces version for JBoss AS 4.2.2 and 5.0. I checked inside the xercesimpl.jar in the lib/endorsed directory, but the manifest file said Xerces version 1.2? Am I reading that correctly?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147635#4147635
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147635
From do-not-reply at jboss.com Tue Apr 29 17:27:35 2008
From: do-not-reply at jboss.com (soch)
Date: Tue, 29 Apr 2008 17:27:35 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Newbee Q: Returning hashmaps
Message-ID: <13460766.1209504455315.JavaMail.jboss@colo-br-02.atl.jboss.com>
Following are installed:
C:\jboss-4.2.2.GA.
C:\jbossws-3.0.1-native-2.0.4.GA --> followed the installation steps mention at http://www.jboss.org/file-access/default/members/jbossws/downloads/Install-3.0.1-native-2.0.4.GA.txt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147653#4147653
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147653
From do-not-reply at jboss.com Tue Apr 29 19:05:49 2008
From: do-not-reply at jboss.com (amit.sfbay)
Date: Tue, 29 Apr 2008 19:05:49 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Exception making a Webservice call
Message-ID: <5216744.1209510349601.JavaMail.jboss@colo-br-02.atl.jboss.com>
I am calling a Webservice from the JBoss web container and I am getting the exception given below. The Webservice is deployed in a Websphere server on another box, but this looks like a client side exception to me. What I did was - I used wsconsume to generate the client side stubs from the WSDL and put the jar in web-inf/lib and used it from a servlet.
Any help will be appreciated.
Caused by: javax.xml.ws.soap.SOAPFaultException: Transport level information does not match with SOAP Message namespace URI
at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:69)
at org.jboss.ws.core.jaxws.binding.SOAP12BindingJAXWS.throwFaultException(SOAP12BindingJAXWS.java:117)
at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:553)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:371)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147670#4147670
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147670
From do-not-reply at jboss.com Tue Apr 29 19:28:19 2008
From: do-not-reply at jboss.com (soch)
Date: Tue, 29 Apr 2008 19:28:19 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - ant tests errors: SOAP request exception
Message-ID: <9921549.1209511699687.JavaMail.jboss@colo-br-02.atl.jboss.com>
Ran the ant tests on the native jaxws installation.
Saw following errors on the JBOSS AS. Is this normal.
C:\jbossws-3.0.1-native-2.0.4.GA\jbossws-native-dist>ant tests
...
15:03:10,254 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss-4.2.2.GA/server/default/data/wsdl/jaxws-samples-exception.w
ar/ExceptionEndpointImplService41482.wsdl
15:03:11,364 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
java.lang.RuntimeException: oh no, a runtime exception occured.
at org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpointImpl.throwRuntimeException(ExceptionEndpointImpl.java:3
9)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
...
15:03:11,770 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
javax.xml.ws.soap.SOAPFaultException: this is a fault string!
at org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpointImpl.throwSoapFaultException(ExceptionEndpointImpl.java
:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
...
& some more simillar SOAP exceptions.
On the client side the ant tests threw following failures:
[junit] Corrupt JPEG data: 1 extraneous bytes before marker 0xc4
[junit] Test org.jboss.test.ws.jaxws.samples.xop.doclit.XOPBareTestCase FAILED
[junit] Running org.jboss.test.ws.jaxws.samples.xop.doclit.XOPHandlerTestCase
[junit] Tests run: 7, Failures: 1, Errors: 0, Time elapsed: 4.313 sec
15:05:00,791 INFO [TestEndpointImpl] echo: Hello
15:05:00,838 INFO [TestEndpointImpl] echo: Hello
15:05:00,854 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
org.jboss.ws.core.CommonSOAPFaultException: Endpoint {http://webmethod.samples.jaxws.ws.test.jboss.org/}TestEndpointPort does not co
ntain operation meta data for: {http://webmethod.samples.jaxws.ws.test.jboss.org/}noWebMethod
at org.jboss.ws.core.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:468)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147674#4147674
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147674
From do-not-reply at jboss.com Tue Apr 29 21:14:33 2008
From: do-not-reply at jboss.com (soch)
Date: Tue, 29 Apr 2008 21:14:33 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Newbee Q: Returning hashmaps
Message-ID: <23106839.1209518073491.JavaMail.jboss@colo-br-02.atl.jboss.com>
Am I supposed to use the @WebMethod annotation when returning complex datatypes?
The retailer e.g. at http://jbws.dyndns.org/mediawiki/index.php/Quick_Start has a method returning an object:
public class ProfileMgmtBean {
|
| @WebMethod
| public DiscountResponse getCustomerDiscount(DiscountRequest request) {
| return new DiscountResponse(request.getCustomer(), 10.00);
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147681#4147681
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147681
From do-not-reply at jboss.com Tue Apr 29 21:31:03 2008
From: do-not-reply at jboss.com (peiguo)
Date: Tue, 29 Apr 2008 21:31:03 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Cannot expose EJB 3 as WS
Message-ID: <20736716.1209519063438.JavaMail.jboss@colo-br-02.atl.jboss.com>
Thanks and you are right!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147682#4147682
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147682
From do-not-reply at jboss.com Tue Apr 29 21:43:33 2008
From: do-not-reply at jboss.com (peiguo)
Date: Tue, 29 Apr 2008 21:43:33 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - how to modify a client so that it works
with rpc instead of
Message-ID: <27833169.1209519814069.JavaMail.jboss@colo-br-02.atl.jboss.com>
On server side, I changed the style annotation of my service: from RPC to DOCUMENT. The client side stopped working. When I first started writing this post, I found teh client side imports javax.xml.rpc.*. i searched through J2EE API and there is no javax.xml.document.
How should I modify my client code? Why is the API's not consistent for those two styles?
| package org.jboss.tutorial.webservice.client;
|
| import org.jboss.tutorial.webservice.bean.Calculator;
|
| import javax.xml.namespace.QName;
| import javax.xml.rpc.Service;
| import javax.xml.rpc.ServiceFactory;
| import java.net.URL;
| import java.io.File;
|
| public class Client
| {
| public static void main(String[] args) throws Exception
| {
| URL url = new URL("http://localhost:8080/tutorial/CalculatorBean?wsdl");
|
| ServiceFactory factory = ServiceFactory.newInstance();
| Service service = factory.createService(url, null);
|
| Calculator calculator = (Calculator) service.getPort(Calculator.class);
|
| System.out.println("" + calculator.add(Integer.parseInt(args[0]), Integer.parseInt(args[1]), args[2]));
| System.out.println("" + calculator.subtract(Integer.parseInt(args[0]), Integer.parseInt(args[1])));
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147684#4147684
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147684
From do-not-reply at jboss.com Wed Apr 30 02:42:33 2008
From: do-not-reply at jboss.com (pingus)
Date: Wed, 30 Apr 2008 02:42:33 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Performance issue with WSProvide Ant
Task (Windows only)
Message-ID: <28361051.1209537754027.JavaMail.jboss@colo-br-02.atl.jboss.com>
I'm using WSProvide and WSConsume to create a Web Service client library. Using it on a Linux machine performs well. Switching to Windows it's ~ 20 times slower.
After several attempts to solve this, e.g. adjusting the memory parameters, I checked the network traffic having in mind it could by some kind of "timeout" problem while accessing resources. Using Wireshark I've seen several NetBIOS Name queries like this:
NBNS Name query NB JBOSS-4.2.2.GA<00>
NBNS Name query NB LOG4J.JAR;C<00>
NBNS Name query NB MAIL.JAR;C<00>
All of them get the Answer
NBNS Name query response, Requested name does not exist
As a first-try workaround I've deactivated NetBIOS over TCP/IP in the Network settings and it's fast as expected.
But, what is the reason for this? Why NBNS queries for JBOSS-4.2.2.GA?
Is there any better way to solve this, e.g. a Java option to deactivate NetBIOS requests?
Thanks in advance
Pingus
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147710#4147710
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147710
From do-not-reply at jboss.com Wed Apr 30 05:13:58 2008
From: do-not-reply at jboss.com (xinhua)
Date: Wed, 30 Apr 2008 05:13:58 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Need help : JBossWS Security!
Message-ID: <25563712.1209546838320.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hi all,
i want to use ssl and signature to protect my WS on Jboss4.2.2GA , ssl works perfectly but when i use client to send a request with signature, i always got an error. My codes, configurations and evn listed as followed:
JBoss4.2.2GA
jdk1.5
SSL keyStore&trustStore file: ksbws.keystore
Signature keyStore&trustStore file: ksbws_security.keystore
Server Side:
| @Stateless
| @SecurityDomain("JBossWS")
| @RolesAllowed("friend")
| @WebService(endpointInterface="de.xxx.xxx.KSBService")
| @WebContext(contextRoot="/KSBService",
| urlPattern="/*",
| authMethod="BASIC",
| transportGuarantee="CONFIDENTIAL",
| secureWSDLAccess=false)
| @EndpointConfig(configName = "Standard WSSecurity Endpoint")
| public class KSBServiceBean implements KSBService,KSBServiceRemote,KSBServiceLocal{
|
| private static final Logger log = Logger.getLogger(KSBServiceBean.class);
|
| @EJB
| KSBManagerLocal ksb;
|
| public sting validateLogin(Long userNo, String password) {
| // doSomething
| }
|
| }
in META-INF/ i putted ksbws_security.keystore and jboss-wsse-server.xml
here is my jboss-wsse-server.xml:
|
| META-INF/ksbws_security.keystore
| test
| META-INF/ksbws_security.keystore
| test
|
|
|
|
|
|
|
|
Server side jar deployed without exception
Client:
codes
| public static void main(String[] args) {
| KSBService ksb = null;
| try {
| //SSL keystore
| System.setProperty("javax.net.ssl.keyStore", "c:\\ksbws.keystore");
| System.setProperty("javax.net.ssl.trustStore", "c:\\ksbws.keystore");
| System.setProperty("javax.net.ssl.keyStorePassword", "test");
| System.setProperty("javax.net.ssl.trustStorePassword", "test");
| System.setProperty("javax.net.ssl.keyStoreType", "jks");
| System.setProperty("javax.net.ssl.trustStoreType", "jks");
| System.setProperty("org.jboss.security.ignoreHttpsHost","true");
|
| //Signature keystore
| System.setProperty("org.jboss.ws.wsse.keyStore","c:\\ksbws_security.keystore");
| System.setProperty("org.jboss.ws.wsse.trustStore","c:\\ksbws_security.keystore");
| System.setProperty("org.jboss.ws.wsse.keyStorePassword", "test");
| System.setProperty("org.jboss.ws.wsse.trustStorePassword", "test");
| System.setProperty("org.jboss.ws.wsse.keyStoreType", "jks");
| System.setProperty("org.jboss.ws.wsse.trustStoreType", "jks");
|
| Service service = Service.create(new URL("http://localhost:8180/KSBService/KSBServiceBean?wsdl"),
| new QName("http://xxx.xxx.de/","KSBServiceBeanService") );
|
|
|
|
| ksb= service.getPort(KSBService.class);
|
| ((StubExt) ksb).setConfigName("Standard WSSecurity Client");
|
| BindingProvider bp = (BindingProvider)ksb;
| bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "kermit");
| bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "thefrog");
|
|
| } catch (Exception e) {
| ....
| ...
|
|
|
also, i putted jboss-wsse-client.xml in META-INF/
|
|
|
|
|
|
|
|
|
But when i run client , an Exception like this:
| java.lang.ClassCastException: $Proxy23 cannot be cast to org.jboss.ws.core.StubExt
| at dexxxxx.xxxx.xxxx.MultiThreadsTest.main(MultiThreadsTest.java:43)
| Exception in thread "Thread-1" com.sun.xml.ws.client.ClientTransportException: request requires HTTP authentication: Unauthorized
| at com.sun.xml.ws.transport.http.client.HttpClientTransport.checkResponseCode(HttpClientTransport.java:197)
| at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:137)
| at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:74)
| at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
| at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
| at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
| at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
| at com.sun.xml.ws.client.Stub.process(Stub.java:235)
| at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:120)
| at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:230)
| at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
| at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
| at $Proxy23.validateLogin(Unknown Source)
|
It seems that jboss-wsse-client.xml was not readed by client.
If i remove codes and configs for signature, SSL works fine.
can anyone help me???
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147754#4147754
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147754
From do-not-reply at jboss.com Wed Apr 30 05:35:40 2008
From: do-not-reply at jboss.com (xinhua)
Date: Wed, 30 Apr 2008 05:35:40 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Need help : JBossWS Security!
Message-ID: <14322002.1209548140848.JavaMail.jboss@colo-br-02.atl.jboss.com>
ok, i think ((StubExt) ksb).setConfigName("Standard WSSecurity Client"); is in a wrong place, now i put it under http auth block
| .....
| BindingProvider bp = (BindingProvider)ksb;
| bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "kermit");
| bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "thefrog");
|
| ((StubExt) ksb).setConfigName("Standard WSSecurity Client");
| .....
|
HTTP authentication: Unauthorized exception by client is gone , but server side runs into trouble:
| $ 11:30:01,343 ERROR [HandlerChainExecutor] Exception during handler processing
| java.lang.NullPointerException
| at org.jboss.ws.extensions.security.Util.matchNode(Util.java:188)
| at org.jboss.ws.extensions.security.Util.matchNode(Util.java:183)
| at org.jboss.ws.extensions.security.Util.findElement(Util.java:89)
| at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:115)
| at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
| at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41)
| at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
| at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
| at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| 11:30:01,343 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
| javax.xml.ws.WebServiceException: java.lang.NullPointerException
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155)
| at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
| at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.NullPointerException
| at org.jboss.ws.extensions.security.Util.matchNode(Util.java:188)
| at org.jboss.ws.extensions.security.Util.matchNode(Util.java:183)
| at org.jboss.ws.extensions.security.Util.findElement(Util.java:89)
| at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:115)
| at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
| at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41)
| at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
| ... 28 more
| 11:30:01,343 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
| javax.xml.ws.WebServiceException: java.lang.NullPointerException
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155)
| at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
| at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.NullPointerException
| at org.jboss.ws.extensions.security.Util.matchNode(Util.java:188)
| at org.jboss.ws.extensions.security.Util.matchNode(Util.java:183)
| at org.jboss.ws.extensions.security.Util.findElement(Util.java:89)
| at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:115)
| at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
| at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41)
| at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
| ... 28 more
|
|
can anyone help?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147767#4147767
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147767
From do-not-reply at jboss.com Wed Apr 30 06:54:21 2008
From: do-not-reply at jboss.com (xinhua)
Date: Wed, 30 Apr 2008 06:54:21 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Need help : JBossWS Security!
Message-ID: <31947322.1209552861333.JavaMail.jboss@colo-br-02.atl.jboss.com>
i updated the jbossWS-native in jboss4.2.2GA to jbossws-3.0.1-native-2.0.4.GA
the severside exception is also changed:(
| 12:45:06,234 ERROR [HandlerChainExecutor] Exception during handler processing
| org.jboss.ws.core.CommonSOAPFaultException: This service requires , which is missing.
| at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:100)
| at org.jboss.ws.extensions.security.WSSecurityDispatcher.decodeMessage(WSSecurityDispatcher.java:207)
| at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:83)
| at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41)
| at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
| at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:97)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:127)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:171)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134)
| at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| 12:45:06,234 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
| javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: This service requires , which is missing.
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155)
| at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:97)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:127)
| at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:171)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201)
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134)
| at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.ws.core.CommonSOAPFaultException: This service requires , which is missing.
| .....
|
|
|
it seems that request from client is not right. :(
need help....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147785#4147785
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147785
From do-not-reply at jboss.com Wed Apr 30 07:23:13 2008
From: do-not-reply at jboss.com (getshantanu)
Date: Wed, 30 Apr 2008 07:23:13 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: Steps for implementing WS-Security
in JBoss using Userna
Message-ID: <24575457.1209554593626.JavaMail.jboss@colo-br-02.atl.jboss.com>
i was missing the jboss-wsse-server.xml file on the server. Once i put it in META-INF, the server is able to get the username and password from the soap request.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147792#4147792
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147792
From do-not-reply at jboss.com Wed Apr 30 10:16:48 2008
From: do-not-reply at jboss.com (JulienL)
Date: Wed, 30 Apr 2008 10:16:48 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: JBossWS JAX-WS question using
stateful
Message-ID: <5617982.1209565008250.JavaMail.jboss@colo-br-02.atl.jboss.com>
Hello JBossWS team,
Even if it is a 1 year old post, I was wondering if something similar has been done for Stateful WS ?
Would be very usefull added to an EJB3 Stateful component ...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147862#4147862
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147862
From do-not-reply at jboss.com Wed Apr 30 10:57:34 2008
From: do-not-reply at jboss.com (richard.opalka@jboss.com)
Date: Wed, 30 Apr 2008 10:57:34 -0400 (EDT)
Subject: [jbossws-users] [JBossWS] - Re: JBossWS JAX-WS question using
stateful
Message-ID: <26323082.1209567454400.JavaMail.jboss@colo-br-02.atl.jboss.com>
We support @Stateless and @Webservice annotations only.
There's neither @Stateful nor @Addressing annotation support in our stack.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147883#4147883
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147883