[jboss-user] [JBossWS] - Re: Need help : JBossWS Security!

2009-07-28 Thread seventy8
Hi everybody,

I ran into the same problem. Did you solve this issue?
I assume that it has something to do with the fact, that I have a https 
endpoint.

If I use a http endpoint the message is signed properly.

regards

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4246409#4246409

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246409
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - WS-Client using wsse signature and ssl

2009-07-20 Thread seventy8
Hi everybody,

I want to implement a ws-client which uses wsse signature and ssl.
There is no problem if I use either wsse signature or ssl.

If only wsse signature is enabled the message is signed correctly. But if I 
switch to the https service address, I receive an exception saying 
wsse:Security is missing.

Regards

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4244237#4244237

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244237
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Enabling MTOM-Support at JBossWS client fails

2008-01-16 Thread seventy8
Hello!

I am trying to use mtom for sending a binary file from a web service client to 
a web service endpoint, using JBoss AS 4.2.2.GA with build in JBossWS 2.0.1.SP2.

I enabled mtom on the endpoint and on the client like it is told in the user 
guide:

First I added the @BindingType Annotation
 
  | @Stateless
  | @TransactionManagement(value=TransactionManagementType.CONTAINER)
  | @WebService(name=AdminLibrary, 
  | serviceName=AdminLibraryService,
  | wsdlLocation=META-INF/wsdl/AdminLibraryService.wsdl)
  | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = 
SOAPBinding.ParameterStyle.BARE)
  | @BindingType(value = http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true;)
  | @WebContext(contextRoot = ALibrary)
  | public class AdminLibraryWS {
  | 
  | ...
  | 
  | 

Then I used WSProvide to generate the wsdl and did the appropriate changes



  | 
  |   xs:schema targetNamespace='http://ws.session.ejb.alibrary.seventy8.com/' 
version='1.0' xmlns:tns='http://ws.session.ejb.alibrary.seventy8.com/' 
xmlns:xs='http://www.w3.org/2001/XMLSchema'
  |xs:import schemaLocation='http://www.w3.org/2005/05/xmlmime' 
namespace='http://www.w3.org/2005/05/xmlmime'/
  |xs:element name='ALibraryException' type='tns:ALibraryException'/
  |xs:element name='importBook' nillable='true' 
type='tns:importBookRequest'/
  |xs:element name='importBookResponse' nillable='true' 
type='tns:importBookResponse'/
  |xs:complexType name='importBookRequest'
  | xs:sequence
  |  xs:element minOccurs='0' name='dataHandler' type='xmime:base64Binary' 
xmlns:xmime='http://www.w3.org/2005/05/xmlmime'/
  |  xs:element minOccurs='0' name='userId' type='xs:string'/
  | /xs:sequence
  | 
  | 

After deploying everything looks fine on the server. So I ran WSConsume

At the clients side I enabled MTOM as follows:


  | 
  | SOAPBindingbinding = (SOAPBinding)((BindingProvider)port).getBinding();
  | binding.setMTOMEnabled(true);
  | 
  | 

When I test this service and check the SOAP Message, the binary content is 
transmitted inline. 


  | 
  | POST /ALibrary-ALibrary./AdminLibraryWS HTTP/1.1
  | SOAPAction: 
  | Content-Type: text/xml; charset=UTF-8
  | JBoss-Remoting-Version: 22
  | User-Agent: JBossRemoting - 2.2.2.SP1 (Bluto)
  | Host: 127.0.0.1:4040
  | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
  | Connection: keep-alive
  | Content-Length: 284493
  | 
  | env:Envelope 
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'env:Header/env:Headerenv:Bodyns1:importBook
 xmlns:xmime=http://www.w3.org/2005/05/xmlmime; 
xmlns:ns1=http://ws.session.ejb.alibrary.seventy8.com/;dataHandlerPQA9AD0AIABWAGUAcgBiAG8AcwBlACAAbABvAGcAZwBpAG4AZwAgAHMAdABhAHIAdABlAGQAOgAgA
  | 
  | ...
  | 
  | 
DAAMwAuADAANAAuADIAMAAwADcAIAAgADIAMQA6ADMANQA6ADAANwAgACAAQgB1AGkAbABkACAAdAB5AHAAZQA6ACAAUwBIAEkAUAAgAFUATgBJAgA=/dataHandleruserIduser1/userId/ns1:importBook/env:Body/env:Envelope
  | 
  | 

Is there anything further I have to do to enable MTOM at the client?

WSConsume generates a class named Base64Binary which includes a byte-array and 
a field called contentType.

IMO the type should be DataHandler instead, or am I wrong?

best regards


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4120639#4120639

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4120639
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: @WebServiceRef jbossws 1.2.0.GA

2007-03-05 Thread seventy8
I ran the ant-script and got the following output:
Buildfile: build.xml
  | 
  | prepare:
  |  [echo]
  |  [echo] ---
  |  [echo] jboss.home   = C:\java\jboss-4.0.5.GA
  |  [echo] tomcat.home  = /usr/java/tomcat
  |  [echo] java.home= C:\Programme\Java\jdk1.5.0_11\jre
  |  [echo] endorsed = C:\java\jboss-4.0.5.GA/lib/endorsed
  |  [echo] excludesfile = tests-jboss40-excludes.txt
  |  [echo] ---
  | 
  | thirdparty-get:
  | 
  | thirdparty-classpath:
  | 
  | thirdparty:
  | 
  | common-classpath:
  | 
  | jboss-classpath:
  | 
  | tomcat-classpath:
  | 
  | init:
  | 
  | test:
  | 
  | prepare:
  |  [echo]
  |  [echo] ---
  |  [echo] jboss.home   = C:\java\jboss-4.0.5.GA
  |  [echo] tomcat.home  = /usr/java/tomcat
  |  [echo] java.home= C:\Programme\Java\jdk1.5.0_11\jre
  |  [echo] endorsed = C:\java\jboss-4.0.5.GA/lib/endorsed
  |  [echo] excludesfile = tests-jboss40-excludes.txt
  |  [echo] ---
  | 
  | thirdparty-get:
  | 
  | thirdparty-classpath:
  | 
  | thirdparty:
  | 
  | common-classpath:
  | 
  | jboss-classpath:
  | 
  | tomcat-classpath:
  | 
  | init:
  | 
  | tests-main:
  | 
  | BUILD SUCCESSFUL
  | Total time: 2 seconds

the generated output-folder  includes the folders classes, log, and reports
each of these folders is empty, except the log folder which includes an empty 
logfile.


What is the right way to use an ejb3 stateless session bean as 
webservice-client?

I found several examples, but none of them worked. 
Do I have to put the annotation to the class, to the field of the service or to 
the field of the port?

Do I have to set a value for mappedName and wsdlLocation?




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4025080#4025080

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025080
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - @WebServiceRef jbossws 1.2.0.GA

2007-03-03 Thread seventy8
I'm running jboss 4.0.5.GA with EJB3.0  Configuration and jbossws 1.2.0.GA 
installed with the installer.

I'm using an stateless session bean as a webservice-client. I generated the 
artifacts with ws-import.

If I use @WebServiceRef I run into the following Exception:


  | Non matching type for inject of field: 
de.uniSiegen.crm.server.ejb3.session.webservice.generated.bpeluserinteractiondialog.CrmPLService
 
de.uniSiegen.crm.server.ejb3.session.webservice.BPELUserInteractionDialogCallbackClient.service
 for type: org.jnp.interfaces.NamingContext of jndiName 
env/de.uniSiegen.crm.server.ejb3.session.webservice.BPELUserInteractionDialogCallbackClient/service
  | intfs: , javax.naming.Context, java.io.Serializable

If I don't use this annotation and instanciate the Service like this:

CrmPLService service = new CrmPLService();

everything works fine.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024826#4024826

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024826
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user