RE: Required help to debug
<[email protected]> Tue, 30 May 2006 22:45:07 +0530
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Alek, Thanks for the suggestion. I was able to resolve it. I am facing another problem. When I try to do the following WSIFPort port = null; If(portName == null) port = definition.getPort(); Else port = definition.getPort(portName); When this part of the code is executed, I am getting a NullPointerException in Org.apache.wsif.base.WSIFServiceImpl.createDynamicWSIFPort(WSIFServiceIm pl.java:525) Pls suggest some solution. Regards PRakash -----Original Message----- From: Aleksander Slominski [mailto:[email protected]] Sent: Monday, May 29, 2006 11:22 PM To: [email protected] Subject: Re: Required help to debug [email protected] wrote: > Hi Alek, > > I am getting a java.net.UnknownServiceException with "no content-type" > message when I > Read a WSDL using WSDLReader.readWSDL("wsdl location ") method. > access the "wsdl location " using your wget -S to see what are HTTP headers returned by server (or use your browser if it can show headers or even telnet) and check if content-type is present and what it is. if it is missing you may need to chnage server to add it or modify wsif / underlying transport in WSDL4J to read that. best, alek > -----Original Message----- > From: Aleksander Slominski [mailto:[email protected]] > Sent: Tuesday, May 23, 2006 9:43 PM > To: [email protected] > Subject: Re: Required help to debug > > [email protected] wrote: > >> Hi Alek, >> >> I have downloaded the wsif Patch from this location >> http://cvs.apache.org/dist/ws/wsif/ >> >> How to upgrade the wsif-2.0 with this patch? Pls advice >> >> > try and just replace wsif.jar file (you may need ot replace related > jars such as axis if you use SOAP AXIS provider) > > HTH, > > alek > >> Regards >> Prakash >> >> -----Original Message----- >> From: Aleksander Slominski [mailto:[email protected]] >> Sent: Monday, May 22, 2006 1:36 PM >> To: [email protected] >> Cc: [email protected] >> Subject: Re: Required help to debug >> >> hi Prakash, >> >> did try to you source code and set debugger breakpoint in >> addAllTypesElements() ? that should tell you what is going on when >> you >> > > >> step through this method. >> >> it is hard to know what is going on as you do not provide enough >> resources to reproduce the issues. >> >> best, >> >> alek >> >> [email protected] wrote: >> >> >>> Hi, >>> >>> I am using wsif 2.0 in my project. I am getting the following >>> >>> >> exception. >> >> >>> INFO [STDOUT] _java.lang.ClassCastException_ >>> >>> 00:39:21,018 INFO [STDOUT] at >>> org.apache.wsif.compiler.util.Utils.addAllTypesElements(Unknown >>> Source) >>> >>> 00:39:21,018 INFO [STDOUT] at >>> org.apache.wsif.compiler.util.Utils.getAllTypesElements(Unknown >>> Source) >>> >>> 00:39:21,019 INFO [STDOUT] at >>> org.apache.wsif.base.WSIFServiceImpl.getDefaultTypeMappings(Unknown >>> Source) >>> >>> 00:39:21,019 INFO [STDOUT] at >>> org.apache.wsif.base.WSIFServiceImpl.getAllCustomTypes(Unknown >>> Source) >>> >>> 00:39:21,019 INFO [STDOUT] at >>> org.apache.wsif.base.WSIFServiceImpl.init(Unknown Source) >>> >>> 00:39:21,019 INFO [STDOUT] at >>> org.apache.wsif.base.WSIFServiceImpl.<init>(Unknown Source) >>> >>> 00:39:21,019 INFO [STDOUT] at >>> org.apache.wsif.base.WSIFServiceFactoryImpl.getService(Unknown >>> Source) >>> >>> >>> >>> When I print the 'Types' in the Definition object I am getting the >>> following: >>> >>> >>> >>> *SchemaExtensibilityElement >>> ({http://www.w3.org/2001/XMLSchema}schema):* >>> >>> *required=null* >>> >>> *element=[xs:schema: null]* >>> >>> >>> >>> I think the line where the Object is type cast is expecting >>> UnknonwExtensibilityElement but the actual type is the >>> >>> following: >>> >>> >>> >>> *com.ibm.wsdl.extensions.schema.SchemaImpl* >>> >>> ** >>> >>> Pls help me debugging the issue. >>> >>> >>> >>> Thanks & Regards >>> >>> Prakash >>> >>> >>> The information contained in this electronic message and any >>> attachments to this message are intended for the exclusive use of >>> the >>> addressee(s) and may contain proprietary, confidential or privileged >>> information. If you are not the intended recipient, you should not >>> disseminate, distribute or copy this e-mail. Please notify the >>> sender >>> > > >>> immediately and destroy all copies of this message and any >>> >>> >> attachments. >> >> >>> WARNING: Computer viruses can be transmitted via email. The >>> recipient >>> > > >>> should check this email and any attachments for the presence of >>> viruses. The company accepts no liability for any damage caused by >>> any >>> >>> >> >> >>> virus transmitted by this email. >>> >>> www.wipro.com >>> >>> >>> >> -- >> The best way to predict the future is to invent it - Alan Kay >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> >> The information contained in this electronic message and any >> > attachments to this message are intended for the exclusive use of the > addressee(s) and may contain proprietary, confidential or privileged > information. If you are not the intended recipient, you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately and destroy all copies of this message and any attachments. > >> WARNING: Computer viruses can be transmitted via email. The recipient >> > should check this email and any attachments for the presence of viruses. > The company accepts no liability for any damage caused by any virus > transmitted by this email. > >> www.wipro.com >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> >> > > > -- > The best way to predict the future is to invent it - Alan Kay > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > > The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. > > www.wipro.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- The best way to predict the future is to invent it - Alan Kay --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com