aditi ray

Greenhorn
+ Follow
since Nov 08, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by aditi ray

I think i was not clear enough.I generated jws from WL Workshop and built the ear file from the same.i cannot see any .jws (i am using winzip to extract file from ear).only .class files are visible.I want to view the .class file thanks for the response
[ November 28, 2006: Message edited by: aditi ray ]
14 years ago
(I have an .jws file then i built an ear file from weblogic 8.1 .)

If i only have .ear file how can i view jws file because i cannot see any .jws file inside it .i can only see .class file
14 years ago
I developed a .jws file from weblogic 8.1 and then build the application and build an .ear file for eg aq.ear.

Suppose i have only this aq.ear...My.jws file is zipped automatically in aq.ear by the weblogic. I wish to view the .jws file how can i do that
Pls help
14 years ago
I think you have done most of the job.You only need to place them in application and build the application and run the html page.
14 years ago
import java.io.BufferedWriter;
import javax.xml.namespace.QName;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import javax.xml.rpc.handler.Handler;
import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.rpc.handler.MessageContext;
import javax.xml.rpc.handler.soap.SOAPMessageContext;
import javax.xml.namespace.QName;
import java.util.Iterator;
import org.omg.CORBA.*;



public class messageHandler implements Handler
{



public void destroy()
{

}


public QName[] getHeaders()
{
//return null;
return handlerInfo.getHeaders();
}

public boolean handleFault(MessageContext arg0)
{

}

public boolean handleRequest(MessageContext arg0)
{

}

public boolean handleResponse(MessageContext arg0)
{

}

public void init(HandlerInfo arg0)
{
handlerInfo = arg0;
}
}

I have implemented the above class to get request and response but not sure how to invoke it through web service code.I am using weblogic 8.1.

Do i need to define in web.xml or there is any other way.Please help
14 years ago
Thank you so much.
14 years ago
How do i define the complex type since changing to string may change my schema.I am new to wsdl hence unable to do so.Pls help
14 years ago
Thanks for the reply
14 years ago
How can we log request and response to/from a webservice.do i have to write the code in the webservice or do i need to implement another application for it.

I would prefer to do that in same webservice.Can someone help ?
14 years ago
Thanks for the reply.

here is my wsdl

<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/" xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:jms="http://www.openuri.org/2001/01/wsdl/jms/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns0="http://temp.openuri.org/register/registerservice.xsd" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.openuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.openuri.org/">
<types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://temp.openuri.org/register/registerservice.xsd" xmlns:c2p="http://temp.openuri.org/register/register.xsd" targetNamespace="http://temp.openuri.org/register/registerservice.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">

<!-- faults -->

<xs:element name="authenticationException">

<xs:complexType>

<xs:sequence>

<xs:element name="authenticationException" type="c2p:RegisterExceptionType" minOccurs="1" maxOccurs="1"/>

</xs:sequence>

</xs:complexType>

</xs:element>


<!-- RegisterCall messages-->

<xs:element name="RegisterCallRequest">

<xs:complexType>

<xs:sequence>

<xs:element name="authenticationPart" type="c2p:breezeAuthenticationElementsType" minOccurs="1" maxOccurs="1"/>

<xs:element name="clientPart" type="c2p:breezeClientElementsType" minOccurs="1" maxOccurs="1"/>

<xs:element name="transactionPart" type="c2p:RegisterCallTxType" minOccurs="1" maxOccurs="1"/>

</xs:sequence>

</xs:complexType>

</xs:element>



<xs:element name="RegisterCallResponse">

<xs:complexType>

<xs:sequence>

<xs:element name="responsePart" type="c2p:RegisterCallRxType" minOccurs="1" maxOccurs="1"/>

</xs:sequence>

</xs:complexType>

</xs:element>

</xs:schema>

</types>
<message name="RegisterCallSoapIn">
<part name="parameters" element="ns0:RegisterCallRequest"/>
</message>
<message name="RegisterCallSoapOut">
<part name="parameters" element="ns0:RegisterCallResponse"/>
</message>


<portType name="clickSoap">
<operation name="RegisterCall">
<input message="s0:RegisterCallSoapIn"/>
<output message="s0:RegisterCallSoapOut"/>
</operation>
</portType>
<binding name="clickSoap" type="s0:clickSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="RegisterCall">
<soap peration soapAction="http://www.openuri.org/RegisterCall" style="document"/>
<cw:transition phase="start"/>
<input>
<soap:body use="literal"/>
<soap:header xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" wsdl:required="true" message="s0:StartHeader_literal" part="StartHeader" use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>

</binding>
<service name="click">
<port name="clickSoap" binding="s0:clickSoap">
<soap:address location="http://wc2c1:80/RegisterWeb/click.jws"/>
</port>
</service>
</definitions>



My error message for the same
BUILD FAILED
file:E:/click/build.xml:6: weblogic.webservice.tools.build.WSBuildException: Failed to do type mapping - with nested exception:
[weblogic.xml.schema.binding.BindingException: schema error - with nested exception:
[weblogic.xml.schema.model.XSDException: Unable to resolve definition for ['http://temp.openuri.org/register/register.xsd']:c2p:breezeAuthenticationElementsType perhaps due to the lack of an import statement for namespace http://temp.openuri.org/register/register.xsd]]

Total time: 1 second
14 years ago
Thanks for the reply.But since i am a beginner tell me where can i find the basics of tag library
14 years ago
JSP
i want to display records in pages such as 10 records per page.I am getting records from webservice and displaying them into a jsp page.i need max 10 recordsin one page.using link next i should be able to view records 11-20 in another or same page.pls help
14 years ago
JSP
I am getting foll errors when i tried to create client jars with ant command and build.xml .I am using weblogic 8.1 SP3 i have tried with 9.1 but same problem persists

generate-client:
[clientgen] Generating client jar for register.wsdl ...
[clientgen] weblogic.xml.schema.model.XSDException: Unable to resolve definition
for ['http://temp.openuri.org/register/register.xsd']:c2p:RegisterCallRxType pe
rhaps due to the lack of an import statement for namespace http://temp.openuri.o
rg/register/register.xsd
[clientgen] at weblogic.xml.schema.model.XSDSchema.getSchemaForName(XSDSchem
a.java:1062)
[clientgen] at weblogic.xml.schema.model.XSDSchema.lookupTopLevelObjectImpl(
XSDSchema.java:893)
[clientgen] at weblogic.xml.schema.model.XSDSchema.lookupTypeImpl(XSDSchema.
java:881)
[clientgen] at weblogic.xml.schema.model.XSDSchema.lookupType(XSDSchema.java
:872)
[clientgen] at weblogic.xml.schema.model.XSDObject.lookupType(XSDObject.java
:324)
[clientgen] at weblogic.xml.schema.model.XSDElement.getTypeObject(XSDElement
.java:75)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
elementToProperty(SchemaInspector.java:1554)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
contentModelToProperties(SchemaInspector.java:942)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
fillBeanDescriptor(SchemaInspector.java:874)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
createAddAndFillBeanDescriptor(SchemaInspector.java:478)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
getDescriptors(SchemaInspector.java:417)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
getDescriptors(SchemaInspector.java:365)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
createDescriptorsFromElement(SchemaInspector.java:312)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
createDescriptorForElement(SchemaInspector.java:185)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
createDescriptors(SchemaInspector.java:132)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
(Compiler.java:281)
[clientgen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ad
dTypesInSchemas(XSDTypeMappingBuilder.java:138)
[clientgen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.p
rocessSchemaTypes(TypeMappingBuilderBase.java:310)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.doTy
peMapping(Schema2JavaImpl.java:297)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.run(
Schema2JavaImpl.java:187)
[clientgen] at weblogic.webservice.tools.build.internal.WSDL2JavaImpl.run(WS
DL2JavaImpl.java:192)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.getTyp
eMappingFromWSDL(ClientGenImpl.java:726)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
ntGenFromWsdl(ClientGenImpl.java:400)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
ientGenImpl.java:340)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doC
lientGen(ClientGenTask.java:351)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.exe
cute(ClientGenTask.java:208)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:341)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
[clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

[clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:196)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:235)
[clientgen] --------------- nested within: ------------------
[clientgen] weblogic.xml.schema.binding.BindingException: schema error - with ne
sted exception:
[clientgen] [weblogic.xml.schema.model.XSDException: Unable to resolve definitio
n for ['http://temp.openuri.org/register/register.xsd']:c2p:RegisterCallRxType p
erhaps due to the lack of an import statement for namespace http://temp.openuri.
org/register/register.xsd]
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
createDescriptors(SchemaInspector.java:148)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
(Compiler.java:281)
[clientgen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ad
dTypesInSchemas(XSDTypeMappingBuilder.java:138)
[clientgen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.p
rocessSchemaTypes(TypeMappingBuilderBase.java:310)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.doTy
peMapping(Schema2JavaImpl.java:297)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.run(
Schema2JavaImpl.java:187)
[clientgen] at weblogic.webservice.tools.build.internal.WSDL2JavaImpl.run(WS
DL2JavaImpl.java:192)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.getTyp
eMappingFromWSDL(ClientGenImpl.java:726)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
ntGenFromWsdl(ClientGenImpl.java:400)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
ientGenImpl.java:340)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doC
lientGen(ClientGenTask.java:351)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.exe
cute(ClientGenTask.java:208)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:341)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
[clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

[clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:196)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:235)

BUILD FAILED
file:E:/click/build.xml:6: weblogic.webservice.tools.build.WSBuildException: Fai
led to do type mapping - with nested exception:
[weblogic.xml.schema.binding.BindingException: schema error - with nested except
ion:
[weblogic.xml.schema.model.XSDException: Unable to resolve definition for ['http
://temp.openuri.org/register/register.xsd']:c2p:RegisterCallRxType perhaps due t
o the lack of an import statement for namespace http://temp.openuri.org/register
/register.xsd]]

Total time: 3 seconds

E:\click>ant
Buildfile: build.xml

generate-client:
[clientgen] Generating client jar for register.wsdl ...
[clientgen] weblogic.xml.schema.model.XSDException: Unable to resolve definition for ['http://temp.openuri.org/register/register.xsd']:c2p:breezeAuthenticationE
lementsType perhaps due to the lack of an import statement for namespace http://temp.openuri.org/register/register.xsd
[clientgen] at weblogic.xml.schema.model.XSDSchema.getSchemaForName(XSDSchem
a.java:1062)
[clientgen] at weblogic.xml.schema.model.XSDSchema.lookupTopLevelObjectImpl(
XSDSchema.java:893)
[clientgen] at weblogic.xml.schema.model.XSDSchema.lookupTypeImpl(XSDSchema.
java:881)
[clientgen] at weblogic.xml.schema.model.XSDSchema.lookupType(XSDSchema.java
:872)
[clientgen] at weblogic.xml.schema.model.XSDObject.lookupType(XSDObject.java
:324)
[clientgen] at weblogic.xml.schema.model.XSDElement.getTypeObject(XSDElement
.java:75)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
elementToProperty(SchemaInspector.java:1554)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
contentModelToProperties(SchemaInspector.java:942)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
fillBeanDescriptor(SchemaInspector.java:874)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
createAddAndFillBeanDescriptor(SchemaInspector.java:478)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
getDescriptors(SchemaInspector.java:417)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
getDescriptors(SchemaInspector.java:365)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
createDescriptorsFromElement(SchemaInspector.java:312)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
createDescriptorForElement(SchemaInspector.java:185)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
createDescriptors(SchemaInspector.java:132)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
(Compiler.java:281)
[clientgen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ad
dTypesInSchemas(XSDTypeMappingBuilder.java:138)
[clientgen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.p
rocessSchemaTypes(TypeMappingBuilderBase.java:310)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.doTy
peMapping(Schema2JavaImpl.java:297)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.run(
Schema2JavaImpl.java:187)
[clientgen] at weblogic.webservice.tools.build.internal.WSDL2JavaImpl.run(WS
DL2JavaImpl.java:192)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.getTyp
eMappingFromWSDL(ClientGenImpl.java:726)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
ntGenFromWsdl(ClientGenImpl.java:400)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
ientGenImpl.java:340)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doC
lientGen(ClientGenTask.java:351)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.exe
cute(ClientGenTask.java:208)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:341)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
[clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

[clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:196)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:235)
[clientgen] --------------- nested within: ------------------
[clientgen] weblogic.xml.schema.binding.BindingException: schema error - with nested exception:
[clientgen] [weblogic.xml.schema.model.XSDException: Unable to resolve definition for ['http://temp.openuri.org/register/register.xsd']:c2p:breezeAuthentication
ElementsType perhaps due to the lack of an import statement for namespace http://temp.openuri.org/register/register.xsd]
[clientgen] at weblogic.xml.schema.binding.internal.codegen.SchemaInspector.
createDescriptors(SchemaInspector.java:148)
[clientgen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
(Compiler.java:281)
[clientgen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ad
dTypesInSchemas(XSDTypeMappingBuilder.java:138)
[clientgen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.p
rocessSchemaTypes(TypeMappingBuilderBase.java:310)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.doTy
peMapping(Schema2JavaImpl.java:297)
[clientgen] at weblogic.webservice.tools.build.internal.Schema2JavaImpl.run(
Schema2JavaImpl.java:187)
[clientgen] at weblogic.webservice.tools.build.internal.WSDL2JavaImpl.run(WS
DL2JavaImpl.java:192)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.getTyp
eMappingFromWSDL(ClientGenImpl.java:726)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
ntGenFromWsdl(ClientGenImpl.java:400)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
ientGenImpl.java:340)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doC
lientGen(ClientGenTask.java:351)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.exe
cute(ClientGenTask.java:208)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:341)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
[clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

[clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:196)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:235)

BUILD FAILED
file:E:/click/build.xml:6: weblogic.webservice.tools.build.WSBuildException: Failed to do type mapping - with nested exception:
[weblogic.xml.schema.binding.BindingException: schema error - with nested exception:[weblogic.xml.schema.model.XSDException: Unable to resolve definition for ['http://temp.openuri.org/register/register.xsd']:c2p:breezeAuthenticationElementsType perhaps due to the lack of an import statement for namespace http://temp.openuri.org/register/register.xsd]]

Total time: 1 second
[ November 12, 2006: Message edited by: aditi ray ]
14 years ago