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);
<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'> <env:Header/> <env:Body> <GetRelevanceResult xmlns='http://myns'> <reExpr>select * from tbl</reExpr> <username>user</username> <password>xxxxxxxx</password> </GetRelevanceResult> </env:Body> </env:Envelope>
<?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'> <env:Header/> <env:Body> <GetRelevanceResult xmlns='http://myns'> <reExpr>select * from tbl</reExpr> <username>user</username> <password>xxxxxxxx</password> </GetRelevanceResult> </env:Body> </env:Envelope>
This will be possible with next release ;) See
http://jira.jboss.org/jira/browse/JBWS-2156