[ http://jira.codehaus.org/browse/XFIRE-398?page=all ]
Stefan Freyr Stefansson closed XFIRE-398:
-----------------------------------------
Resolution: Cannot Reproduce
Turns out this was due to the way the client was created.
When the client is created in the following way this bug appears:
Service serviceModel = new
AnnotationServiceFactory().create(FOOImpl.class);
FOOSoap client = (FOOSoap)new XFireProxyFactory().create(serviceModel,
"http://172.30.2.13/Company.Geysir.Interfaces.FOO/FOO.asmx");
But when the following method is used this bug does not appear:
FOOClient stub = new FOOClient();
FOOSoap client = stub.getFOOSoap();
Client http = ((XFireProxy)
Proxy.getInvocationHandler(client)).getClient();
http.setUrl( "http://172.30.2.13/Company.Geysir.Interfaces.FOO/FOO.asmx");
I'm not sure myself what exactly is wrong with the above way but Dan may be
able to shed some light on that.
I have, however, created a seperate issue requesting that a more convenient way
be made available for specifying an external URL for the service endpoint. That
issue is here: http://jira.codehaus.org/browse/XFIRE-402
> Parameter character case gets changed when a request is created using
> generated classes
> ---------------------------------------------------------------------------------------
>
> Key: XFIRE-398
> URL: http://jira.codehaus.org/browse/XFIRE-398
> Project: XFire
> Type: Bug
> Versions: 1.1-RC1
> Environment: Java(TM) 2 Runtime Environment, Standard Edition (build
> 1.5.0_06-b05)
> Linux prometheus-stfs 2.6.15-22-686 #1 SMP PREEMPT Sun May 7 16:37:57 UTC
> 2006 i686 GNU/Linux
> Reporter: Stefan Freyr Stefansson
> Assignee: Dan Diephouse
> Priority: Critical
> Attachments: xfire-gencase-bug.zip
>
>
> Attached is a zip file with a very minimal structure to reproduce this
> problem. The zip file contains all libraries that I used when I noticed the
> problem. Extract this zip file and refer to the structure within in the
> description below:
> 1) Extract the zip file and take a look at the file
> xfire-gencase-bug/src/schema/service.wsdl. Notice in the
> GetPartyByPartyIDRequest type that it contains one element called "PartyID"
> (note the capital 'P').
> 2) Go into the xfire-gencase-bug directory and run "ant". This will generate
> Java classes by utilizing the wsgen task. The sources will go into
> xfire-gencase-bug/src/xfire/.
> 3) Take a look at
> xfire-gencase-bug/src/xfire/foo/interfaces/geysir/company/GetPartyByPartyIDRequest.java
> and notice that the @XmlType annotation for the class is:
> @XmlType(name = "GetPartyByPartyIDRequest", propOrder = {
> "partyID"
> While all other references to "PartyID" have a capital 'P' this annotation
> has a lower case 'p'. This results in the soap messages being constructed
> with the wrong case for the <PartyID> element which causes an error on a .NET
> web service (at least).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira