Hello Chris,
you cannot return a Collection in a WebService, see
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWSFAQSupportedDataTypes
Normaly the best way is to change the return type to an array and return
listUsers.toArray().
Frank
View the original post :
Hello Thomas,
i downloaded jbossws-1.0.1.GA.zip and replaced jbossws.sar and
jbossws-client.jar as described. Seems there is a dependency missing, cause now
i get this error on startup of jboss-4.0.4.GA (from server.log):
| 2006-06-13 08:56:59,336 INFO
Thomas, thanks for your reply, i didn't know that fact.
But: my sample is a EJB Endpoint, so the question remains: Why does it not work?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3949793#3949793
Reply to the post :
I'm currently switching a EJB WebService from JBoss.NET to JBossWS (4.0.4GA)
using JSR-181/EJB3 and now i'm running into problems.
The old JBoss.NET Version had a .NET Client which authenticates via BASIC
Authentication (and it works btw).
In the new JSR-181 Version i used the @PortComponent
I'm running into the same problem at the moment. I put an extra @PortComponent
Annotation to the Sessionbean, but that doesn't fix it either.
| @Stateless
| @WebService(
| name=MyService,
| serviceName=MyService
| )
| @SOAPBinding(
| style=SOAPBinding.Style.RPC,
|
You cannot return a Vector in a webservice. Change that to an array (if
possible) an return vec.toArray().
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3933303#3933303
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933303
I did another cvs update today and gave my little sample another try, this time
with much more luck :-)
I wrote a little Testclient with C#/.NET and it works like a charm, until the
parameter string doesn't contain an umlaut. Calling sayHello with Müller
gives:
| 2006-03-13 14:28:19,068
I did a cvs update today and rebuild the hole stuff.
This is my testejb3.jar
HelloService.java
| package com.dhc;
|
| import javax.ejb.Remote;
|
| @Remote
| public interface HelloService {
| public String sayHello(String name);
| }
|
HelloServiceBean.java
| package
I'm sorry, but i don't get it. :-~
I wanted to try out the new jbossws stack (JSR-181 is nice :-), so i did
everything decribed in http://wiki.jboss.org/wiki/Wiki.jsp?page=WSDeployJBossWS
to setup the new jbossws stack. I'm using jboss-4.0.4RC1 and took the binaries
from docs/examples/jbossws.
You have to submit the form with the right charset
form method='post' accept-charset=UTF-8 ...
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3894886#3894886
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894886
IMHO the problem with .NET is, that the PreAuthenicate Method doesn't work as
expected. The first call
is done without Authorization - Header, only subsequent calls get the right header.
But you can workaround this easily with a little subclassing:
| using System;
|
| public class
Do you have the xdoclet-module-jboss-net.jar from
http://prdownloads.sourceforge.net/jboss/xdoclet-module-jboss-net.jar?download ?
If so, this one doesn't include support for the jboss.wsdd-operation tag. I got it
from http://www.nsdev.org/jboss/stories/jboss-net.html
Don't know if there is
Do you mean this?
| /**
| * ...
| * @ejb.interface-method
| * @jboss-net.web-method
| * @jboss-net.wsdd-operation returnQName=key
| */
| public void doSomething(Short key) throws Exception {
| ...
| }
|
View the original post :
1. Does your webservice.xml contain
?
(or @jboss-net.web-service scope=Session if using xdoclet)
2. I suppose in your java-axis-client you have written
stub.setMaintainSession(true);
In .NET (here C#) you need the equivalent:
webservice.CookieContainer = new CookieContainer();
Hope this
I have a mysterious warning showing up in the server.log file with my webservice.
First i build my webservice with xdoclet from a session bean
* @ejb.permission role-name=Master,Admin,Operator,User
* @jboss-net.authorization
*domain=dhcRealm
*roles-allowed=Master,Admin,Operator,User
Yes, i meant xdoclet, sorry for confusion.
Does your webservice.xml contain lines like the following?
| handler type=java:org.jboss.net.axis.server.JBossAuthenticationHandler
| parameter name=securityDomain value=java:/jaas/.../
| /handler
| handler
Do you use ant?
Then putting
* @jboss-net.authentication
* domain=openbroad
* validate-unauthenticated-calls=true
*
* @jboss-net.authorization
* domain=openbroad
in your (Webservice) Session Bean should do the job, which means it puts the
corresponding entry in webservice.xml
View
Is it possible to use a Session (e.g. HttpSession) with JBoss.net?
I have a stateless Session Bean as a webservice and it does fine. Now i have to add
something like a cart, so it seems i need something like a HttpSession.
In Axis i can use this:
MessageContext mc =
I'm using the xdoclet-module from
http://prdownloads.sourceforge.net/jboss/xdoclet-module-jboss-net.jar?download with
eclipse 2.1.2 without a problem. I just put it in the
plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.2 dir and it worked.
Frank
a
19 matches
Mail list logo