Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.6
-
Fix Version/s: None
-
Component/s: Annotations
-
Labels:None
-
Environment:weblogic 9.2 windows
Description
Creating web services , Used Xfires , i got wsdl
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="xsd:integer"/>
<xsd:element maxOccurs="1" minOccurs="1" name="in1" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="in2" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="in3" nillable="true" type="xsd:integer"/>
</xsd:sequence>
</xsd:complexType>
name =in01,in01,in02 etc are comming , i want proper names in those, So i decided to use Annotations.i follow the same as http://xfire.codehaus.org/JSR+181+Annotations
I added my service.xml as
<service>
<name>ServiceName</name>
<namespace>urn:your:namespace</namespace>
<serviceClass>your.service.Class</serviceClass>
<serviceFactory>org.codehaus.xfire.jaxws.JAXWSServiceFactory</serviceFactory>
</service>
When i add JAXWSServiceFactory i am getting java.lang.NoSuchMethodError: javax.jws.WebService.portName()Ljava/lang/String;
PLease suggust me Or tell me is there any way to get Elelement names in WSDL as i want insted of in0,in1,in2 etc.
U can send me the anser to my email to k_basher@yahoo.com
Thanks in advance
Basher
solved the problem long back for got to update.
Same code works fine in weblogic10 ,