for webservice developing in netbeans,it is very nice that netbeans have very good wsdl editor,you can add complex data type,you can add messages,you can add Port Type,Bindings and Services,it is very handy.
but,with a project I done long time ago,now I need to changes some of service's return data,say complex data type to include additional data.so I have edit my original wsdl file to include this change,and totoally delete current web service,create new web service based on my changed wsdl file,it override my original implementation with a empty one,I have manualy bring my previous implementation back and changed it to effect wsdl change.
looks like it will compile code to include all my changes in wsdl,when i build and deploy,it is successes,but it is not working.it says some class based on complex data type can not be find.
another step missed,it turns out that I need refresh my web service newly created to created another wsld file locally to pack inside war file(not my original edited wsdl file,they are same anyway),it was kindly asking for overriding my implementation and make a back up for you.so I did it,clean and build,deploy,test with soapUI,viola,it works.
so now in side my project,I have two wsdl files,I need to remember that which one is original one,I will need to edit it in future to change the service if the needs come.
one more thing to remember,logging,I using log4J for web service to logging
log file is look like this:
log4j.appender.logfile.File=${com.sun.aas.instanceRoot}/logs/DTTServices.log
that means web service will log to the file that reside in server's logs folder in Domain1,but If I run my unit test,I says it can not find file /logs/DTTServices.log
,since I am using linux,it is no possible to create a folder and file in root folder,so I need change that line like this
log4j.appender.logfile.File=logs/DTTServices.log
then I run the unit test,It will automatically create folder and log file for me.the logs folder will reside in root of the project,not in src, not in build either
that's all
No comments:
Post a Comment