kumari Jain

Ranch Hand
+ Follow
since Jul 28, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by kumari Jain

Thankyou,
I had a question though...
Is it ok if i create dummy web services and register them.I would login and delete them later on of course once i'm famiiar with registering services etc...

regards,
kumari
Hi,
RMH book describes examples of creating Organizations etc in IBM UDDI test registry.Since the IBM UDDI Test Registry and the IBM UDDI Beta Test Registry web sites are no longer available , what other options are there.

i tried this link too but this site doesn't open.

http://udditest.sap.com/

I'm familarizing myself with the UDDI/JAXR concepts as of now.Can someone tell mehow to test the JAXR API and UDDI concepts.ie.which sites(or public registries) can i use to publishwebservices to increase my practical knowledge on UDDI.

regards,
kumari
thanks peer and valentin.I didn't look at obvious places.:-)

regards,
kumari
hi all

I have found out the cause of the problem.The classpath included webservices.jar.This was the jar file required for running webservices on weblogic.The problem was the presence of duplicate classes possibly of different versions in webservices.jar and axis jar files.

Hence once when webservices.jar was removed from classpath everything worked fine.I have found that many people had faced same problem but the solution was not put anywhere.Hope this post is useful for others.

regards,
kumari
18 years ago
Which version of SAAJ is applicable for the exam.Is it SAAJ 1.1 or 1.2 or 1.3.
I noticed that in a SAAJ example given in RMH book invokes a method
getSOAPHeader() on SOAPMessage.This method doesn't seem to be present in SAAJ 1.1 version.
If 1.2 has to be used ,can somebody give me the link to download SAAJ 1.2 API
regards,
kumari
Hi all,
I have installed Axis 1.4 ,Tomcat-4.1.34 ,jdk 1.4 to try out web services examples.
I'm trying to deploy and test a simple HelloService program.
This program has a method sayHello that takes a string parameter and returns a string result.

This is the web service
public class HelloService
{
public String sayHello(String name)
{
System.out.println("sayHelloTo(String name)");
return "Hello " + name + ", How are you doing?";
}
}

This is the client
public class TestClient
{
public static void main(String [] args)
{
String endpoint = "http://localhost:8080/axis/HelloService.jws";

Service service = new Service();
Call call = (Call) service.createCall();

call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName("sayHello");


call.addParameter( "op1", org.apache.axis.Constants.XSD_STRING, ParameterMode.IN );
call.setReturnType( org.apache.axis.Constants.XSD_STRING );

String ret = (String) call.invoke( new Object[] { "Hello!" } ); /* Line 52 : exception is thrown */

System.out.println("Sent 'Hello!', got '" + ret + "'");

}

When i run the client file which invokes the web service,i get the following NullPointerException.

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
at org.apache.axis.message.MessageElement.addTextNode(MessageElement.java:1396)
at org.apache.axis.message.SOAPHandler.addTextNode(SOAPHandler.java:148)
at org.apache.axis.message.SOAPHandler.endElement(SOAPHandler.java:112)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at weblogic.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:585)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:898)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:644)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndEle
ment(XMLDocumentFragmentScannerImpl.java:1008)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCo
ntentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
nt(XMLDocumentFragmentScannerImpl.java:329)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)

java.lang.NullPointerException
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)

at samples.userguide.example1.TestClient.main(TestClient.java:52)

Caused by: java.lang.NullPointerException
at org.apache.axis.message.MessageElement.addTextNode(MessageElement.java:1396)
at org.apache.axis.message.SOAPHandler.addTextNode(SOAPHandler.java:148)



I checked the TCP monitor.It shows the string sent in the request soap message and the result string sent in the SOAP response.

If however i write another method that takes an integer as a parameter and returns an integer,there is no problem.The method successfully returns the integer result.

Can somebody give me a solution to this problem.
regards,
kumari
18 years ago
The log4j warnings could possibly be removed if

1.Have a log4j.properties file
2.Make sure the above properties file is in the class path

regards,
kumari
oops !! error noted.isELIgnored=false is the correct attrribute to be used.sorry for the blunder.

regards,
kumari
i still get the same error even after adding the following line:

connection.setAutoCommit(false);

regards,
kumari
hi puja,
The problem could be that EL expressions are not recongnized.
try explicitly setting isELEnabled attribute to true in page directive
ie.add this to your result.jsp

<%@ page isELEnabled="true"%>

Regarding your first topic ,Person Employee problem please provide the
code for better understanding of the problem

regards,
kumari
hi Mark,
The tutorial at the hibernate site is very good.I was able to execute the first example very easily.May be you can take look at this tutorial -

http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html

Regarding your jar problem,Synchronization class file is found in jta.jar

All the required jars for hibernate come bundled in one jar file.This can be downloaded from here

http://hibernate.org/6.html

You can download either one of the jar under Hibernate Core package.
Hope this helps.

regards,
kumari
Nope,i haven't got the solution as yet ugender
Consider the following complexType ,which contains simple content and <anyAttribute> element

<xsd:complexType name="salaryType">
<xsd:simpleContent>
<xsd:extension base="xsd:float">
<xsd:anyAttribute processContents="lax" namespace="##other" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>

Even if <anyAttribute> was not specified,i can extend the the above complexType to add new attributes from a different namespace in future.

So what is the significance of <anyAttribute> since i'm able to add new attributes to existing complexTypes which do not contain <anyAttribute> mentioned?
hi all,
I'm preparing for SCDJWS .I have started with XML technologies.Currently i'm practising writing XML schemas.Can you tell me if it's neccesary to know all the different elements ,attributes ,(their default values) etc.in a xml schema file for the SCDJWS exam.

regards,
kumari
hi all,
I'm preparing for SCDJWS .I have started with XML technologies.Currently i'm practising writing XML schemas.Can you tell me if it's neccesary to know all the different elements ,attributes ,(their default values) etc.in a xml schema file for the SCDJWS exam.

regards,
kumari
18 years ago