Groups > Weblogic > WebLogic Webservices > strange error with source2wsdd




strange error with source2wsdd

strange error with source2wsdd
Fri, 16 Nov 2007 22:20:25 -080
Hi i am getting this strange error when i run source2wsdd.My xml content for
this is 

<source2wsdd 
		         javaSource="src/com//webservice/WebService.java"
		         ddFile="$/$/WEB-INF/web-services.xml"
		         serviceURI="/WebService.jws"   
		         typesInfo="$/$/WEB-INF/classes/types.xml"
		         wsdlfile="$/WEB-INF/temp.wsdl"
		/>

and i am getting this error 
[source2wsdd] source2wsdd: Cannot find doclet class
weblogic.webservice.tools.ddgen.ServiceGen

somebody in group was telling to put server/bin in classpath but still got
error..is there a way we put sth. in build an it works fine??

My other question is i have this method exposed as webservice ie. public Status
AddSize(UserAuthentication credential,
			String Code, String TN, int size)

now in webservice.xml the param is being generated as 
<param style="in"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
type="xsd:string" location="body" name="string1"
class-name="java.lang.String">
          </param>

so basically it puts Code as param name as string,TN param name as string1 and
size param name as intVal.Is there a way to put the param name itself like code
instead of string,TN instead of string1 etc..i am using servicegen for
generating webservice..

my final question is i have a helper class for main webservice class so
servicegen generated the codec for it.It has 2 field ie. userName and password
..and through weblogic console i see it as follows.

<userAuthentication 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:n1="java:com.verizon.vzone.provision.webservice"
  xsi:type="n1:UserAuthentication">
 <password   href="#ID_2">
 </password>
 <userName   href="#ID_2">
 </userName>
 <xsd:string   xsi:type="xsd:string"
   id="ID_2">sample string</xsd:string>
</userAuthentication>

which is wrong so password and username href should have id as id_1 and id_2 and
xsd:string also should be 2.don't know why it is showing this.I will 
Post Reply
about | contact