Problem in Web service - document style
Hi,
I want to create document style webservices using axis tool.
so i need any sample codes and procedure for creating document style web services using axis tool . If any one help me in regarding this i will be thankfull to u.
regards
tuty.richard
WSADMIN transaction is obsolete from SAP NetWeaver AS 7.00, SP14. and help documentation says following: The same you can get it from information pop-up.
Start of Help Doc***************
From SAP NetWeaver AS 7.00, SP14, new service definitions in the ABAP development environment are no longer administered using transactions WSADMIN and WSCONFIG.
The transactions WSADMIN and WSCONFIG will remain active until all old web service configurations have been migrated, which means you can continue to configure web services from SAP NetWeaver AS 6.40, 7.00, and web service definitions from the XI 3.0 environment. You can also continue to access the runtime configurations of old service definitions using these transactions.
However, new service definitions created in the ABAP development environment will be hidden in these transactions.
End of Help Doc***************
So, You have to use SOAMANAGER transaction if your release is more than whatever specified above.
Regards,
Siva.
Similar Messages
-
Hi all,
I need to create web service component which will accept SOAPMessages as request.
Pls find my requirement below.
1. I have to use document oriented style.
2. I should not use apache ant script rather that i need to use weblogic ant script
3. I should not use RPC call, i should use document oriented call.
4. I have to use weblogic web service frame work, i should not use axis framework.
Can any one pls help me on this? Pls provide me some sample programs.
Thanks,
ManiHi, Mike. There is a newer version of 10.1.3 JDeveloper just made available for download.
When you use that, you have a choice between the old J2EE 1.3 Web services, and new J2EE 1.4 JAX-RPC based Web services.
With the latter you can select the message style (doc/wrapped - a version of doc/lit that interoperates well with .NET, doc/lit, rpc/lit, and rpc/enc), and complex Java objects should in general also be serialized automatically.
(One caveat with this download: you tend to have better success if you blank out the field where it asks for the mapping file instead of accepting the default shown there.)
Your point about not getting to the full wizard with a right click on the Java class is still valid (i.e. no change in the newest drop).
Also, I believe your original issue where methods did not get published likely was due to overloading - in this case the Wizard grays out the method, but you can ask why it is not publishable. -
Problem while testing a BAPI Web Servicei face this problem in web service
i face this problem in web service bapi when i am carrying out the submit test... so can anyone help me???
HTTP/1.1 500 Internal Server Error
Set-Cookie: <value is hidden>
content-type: text/xml; charset=utf-8
content-length: 803
sap-srt_id: 20080610/144609/v1.00_final_6.40/DD36B8E7DE44B5F19BA900145E6770F3
server: SAP Web Application Server (1.0;700)
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><soap-env:Fault><faultcode>soap-env:Client</faultcode><faultstring xml:lang="en">Deserialisation failed</faultstring><detail><n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates"><MainName>/1BCDWB/WSS0080610064309718000</MainName><ProgName>/1BCDWB/WSS0080610064309718000</ProgName><Line>128 </Line><Valid>X</Valid><ReferenceFault><DescriptionText>Error accessing the ref. node 'EMPLOYEENUMBER'</DescriptionText><RefName>EMPLOYEENUMBER</RefName></ReferenceFault><Caller><Class>CL_SRG_RFC_PROXY_CONTEXT</Class><Method>IF_SXML_PART~DECODE</Method><Positions>1 </Positions></Caller></n0:SimpleTransformationFault></detail></soap-env:Fault></soap-env:Body></soap-env:Envelope>Hi,
since I did not find that BAPI in my system: what is the exact name?
Did you test the BAPI directly in ABAP, i.e. function builder SE37, successfully?
Currently it looks to me as if you did not provide sufficient business data.
Did you specify the employee number before executing the call? -
Problem with web service for document template
Hi, I am trying to set up a web service to use with a word template (I use the template designer). The problem is that when I press the 'Test Page' button in the web service tool, I get an error : "Error retrieving URL to Web service test page ...'. I have searched the forum and made sure that the correct J2EE hostname/port is being used, as well as making sure the user/ password is set for the service. I have no idea how to proceed, please help me!
Best Regards Eva
ps. I can press the WSDL button in the web service tool and the web page opens correctly displaying the xml. Also, I create the template with static text as well as the posts requested by the service and the word document opens displaying only the static text...Hello,
Where have you made this setup. Is it in the WSADMIN or in the SOAMANAGER??
Regards,
Varsha -
Good morning everybody
I've buil a web service from Function module.
I can execute my services from SE37 and It's ok, the problem born when i call my web service from another external custom application.
Infact, when i call my web services the log show: ERROR IN SERIALIZATION.
After very long search I Find that the serialization error born because the parameter order that pass to web services in my application in different from parameter order definited into XML WEB SERVICES file.
for Example:
In my application i pass parameters:
p1, p2, p3
and in XML file i can see:
SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body xmlns:ns1="urn:sap-com:document:sap:soap:functions:mc-style">
<ns1:ZWsMaterialList>
<P2 xsi:nil="true"/>
<P3 xsi:nil="true"/>
<P1>HA01</P1>
</ns1:ZWsMaterialList>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Using another web services-test-program I can see that if I change xml file with different order, my application start in correct way.
RIGHT CODE:
<SOAP-ENV:Body xmlns:ns1="urn:sap-com:document:sap:soap:functions:mc-style">
<ns1:ZWsMaterialList>
<P1>HA01</P1>
<P2 xsi:nil="true"/>
<P3 xsi:nil="true"/>
</ns1:ZWsMaterialList>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
My ask is: Can i create a WEB SERVICES where the order of parameter isn't foundamental ???
I CAN'T change my custom application because the code is copiled so i can only change my WEB SERVICE.
some helps ???
than you very much
AndreaHi Raja,
I used the tool that you suggest to me, and the results are I expect to be: if I change the order of parameters in the request, web service gives a serialization error.
I include the 2 differents call of my service. The first with the correct order of parameter, and the second changing the order
CORRECT CALL *******************
<?xml version="1.0" encoding="utf-16"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ZWsMaterialList xmlns="urn:sap-com:document:sap:soap:functions:mc-style">
<MaterialeBg xmlns="" />
<MaterialeEn xmlns="" />
<Tipomat xmlns="">HAWA</Tipomat>
</ZWsMaterialList>
</soap:Body>
</soap:Envelope>
RESPONSE
ResponseCode: 200 (OK)
set-cookie:sap-usercontext=sap-client=100; path=/
content-type:text/xml; charset=utf-8
content-length:21112
sap-srt_id:20060321/140843/v1.00_final_6.40/FF064F59782D3B4B969BE0E893537D22
server:SAP Web Application Server (1.0;640)
<?xml version="1.0" encoding="utf-16"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body>
<n0:ZWsMaterialListResponse xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style">
<Output>
<item>
</Output>
</n0:ZWsMaterialListResponse>
</soap-env:Body>
</soap-env:Envelope>
INCORRECT CALL ***************
<?xml version="1.0" encoding="utf-16"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ZWsMaterialList xmlns="urn:sap-com:document:sap:soap:functions:mc-style">
<MaterialeEn xmlns="" />
<MaterialeBg xmlns="" />
<Tipomat xmlns="">HAWA</Tipomat>
</ZWsMaterialList>
</soap:Body>
</soap:Envelope>
RESPONSE
ResponseCode: 500 (Internal Server Error)
set-cookie:sap-usercontext=sap-client=100; path=/
content-type:text/xml; charset=utf-8
content-length:929
sap-srt_id:20060321/140959/v1.00_final_6.40/0AAC3086A117C447B58AAB58E9F7551B
server:SAP Web Application Server (1.0;640)
<?xml version="1.0" encoding="utf-16"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body>
<soap-env:Fault>
<faultcode>soap-env:Client</faultcode>
<faultstring xml:lang="en">Deserialisation failed</faultstring>
<detail>
<n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">
<MainName>/1BCDWB/WSS0060321101057890000</MainName>
<ProgName>/1BCDWB/WSS0060321101057890000</ProgName>
<Line>34 </Line>
<Valid>X</Valid>
<MatchFault>
<DescriptionText>System expected end of element 'ZWsMaterialList'</DescriptionText>
<TokenType>S</TokenType>
<TokenName>MaterialeBg</TokenName>
<TokenNameSpace>
</TokenNameSpace>
<TokenValue>
</TokenValue>
</MatchFault>
<Caller>
<Class>CL_SRG_RFC_PROXY_CONTEXT</Class>
<Method>IF_SXML_PART~DECODE</Method>
<Positions>1 </Positions>
</Caller>
</n0:SimpleTransformationFault>
</detail>
</soap-env:Fault>
</soap-env:Body>
</soap-env:Envelope>
Thank you very much.
Regards
Andrea -
Problem consuming web service created by ABAP via standalone java client
I'm trying to consume web service created by ABAP in R3 system via standalone java client. I should be getting a string reply after consumed the web service (ZSMS_INBOUND), but so far i received null. I cant find any exception or log to trace the problem. Any help would be appreciated. Is there anything wrong with my client calling the web service?
public void myMethod{
// TODO : Implement
try{
Stub stub = (Stub)new ZSMS_INBOUNDServiceImpl().getLogicalPort();
stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,"http://mytest:8080/sap/bc/srt/rfc/sap/ZSMS_INBOUND?sap- client=100&wsdl=1.1&mode=sap_wsdl");
inboundService = (ZSMS_INBOUND) stub;
BAPIRET2 str = inboundService.ZSMS_INBOUND(date, message, modemId, smsId, tel, time);
ackDeliveryArray<i> = str.toString();
}catch (Exception e) {
e.printStackTrace();
Generated following SAP help standalone proxy creation steps.
***files fr SEIs
ZSMS_INBOUND.java (interface)
ZSMS_INBOUNDService.java (interface)
ZSMS_INBOUNDServiceImpl.java
ZSMS_INBOUNDSoapBindingStub.java
***files fr Proxy classes
ZSMS_INBOUND.java
ZSMS_INBOUNDResponse.java
BAPIRET2.java
.... many more files
the wsdl is as below (generated by ABAP):
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions targetNamespace="urn:sap-com:document:sap:rfc:functions" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:n0="http://www.sap.com/webas/630/soap/features/authentication/" xmlns:sap="http://www.sap.com/webas/630/wsdl/features" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:sap-com:document:sap:rfc:functions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <wsdl:types>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:sap-com:document:sap:rfc:functions" targetNamespace="urn:sap-com:document:sap:rfc:functions" elementFormDefault="unqualified" attributeFormDefault="qualified">
- <xsd:simpleType name="char1">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="1" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char10">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="10" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char17">
+ <xsd:restriction base="xsd:string">
<xsd:maxLength value="17" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char170">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="170" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char20">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="20" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char220">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="220" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char30">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="30" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char32">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="32" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="char50">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="50" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="date">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="10" />
<xsd:pattern value="\d\d\d\d-\d\d-\d\d" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="numeric3">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="3" />
<xsd:pattern value="\d*" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="numeric6">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="6" />
<xsd:pattern value="\d*" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="time">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="8" />
<xsd:pattern value="\d\d:\d\d:\d\d" />
</xsd:restriction>
</xsd:simpleType>
- <xsd:complexType name="BAPIRET2">
- <xsd:sequence>
<xsd:element name="TYPE" type="tns:char1" />
<xsd:element name="ID" type="tns:char20" />
<xsd:element name="NUMBER" type="tns:numeric3" />
<xsd:element name="MESSAGE" type="tns:char220" />
<xsd:element name="LOG_NO" type="tns:char20" />
<xsd:element name="LOG_MSG_NO" type="tns:numeric6" />
<xsd:element name="MESSAGE_V1" type="tns:char50" />
<xsd:element name="MESSAGE_V2" type="tns:char50" />
<xsd:element name="MESSAGE_V3" type="tns:char50" />
<xsd:element name="MESSAGE_V4" type="tns:char50" />
<xsd:element name="PARAMETER" type="tns:char32" />
<xsd:element name="ROW" type="xsd:int" />
<xsd:element name="FIELD" type="tns:char30" />
<xsd:element name="SYSTEM" type="tns:char10" />
</xsd:sequence>
</xsd:complexType>
- <xsd:element name="ZSMS_INBOUND">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element name="DATE" type="tns:date" />
<xsd:element name="MESSAGE" type="tns:char170" />
<xsd:element name="MODEMID" type="tns:char10" />
<xsd:element name="SMSID" type="tns:char17" />
<xsd:element name="TEL" type="tns:char20" />
<xsd:element name="TIME" type="tns:time" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="ZSMS_INBOUNDResponse">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element name="RETURN" type="tns:BAPIRET2" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
- <wsdl:message name="ZSMS_INBOUND">
<wsdl:part name="parameters" element="tns:ZSMS_INBOUND" />
</wsdl:message>
- <wsdl:message name="ZSMS_INBOUNDResponse">
<wsdl:part name="parameters" element="tns:ZSMS_INBOUNDResponse" />
</wsdl:message>
- <sap:Feature name="design_0" uri="http://www.sap.com/webas/630/soap/features/authentication/">
- <sap:Property qname="n0:AuthenticationLevel">
<sap:Option value="n0:None" />
</sap:Property>
</sap:Feature>
- <wsdl:portType name="ZSMS_INBOUND">
<sap:useFeature feature="tns:design_0" />
- <wsdl:operation name="ZSMS_INBOUND">
<wsdl:input message="tns:ZSMS_INBOUND" />
<wsdl:output message="tns:ZSMS_INBOUNDResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="ZSMS_INBOUNDSoapBinding" type="tns:ZSMS_INBOUND">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="ZSMS_INBOUND">
<soap:operation soapAction="" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="ZSMS_INBOUNDService">
- <wsdl:port name="ZSMS_INBOUNDSoapBinding" binding="tns:ZSMS_INBOUNDSoapBinding">
<soap:address location="http://mytest:8080/sap/bc/srt/rfc/sap/ZSMS_INBOUND?sap-client=100" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>I'm now able to consume the web service, but with the error as below:
Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
Error Message is :com/sap/guid/GUIDGeneratorFactory
BAPIRET2 mappingInfo:
TYPE TYPE false false 11
ID ID false false 11
NUMBER NUMBER false false 11
MESSAGE MESSAGE false false 11
LOG_NO LOG_NO false false 11
LOG_MSG_NO LOG_MSG_NO false false 11
MESSAGE_V1 MESSAGE_V1 false false 11
MESSAGE_V2 MESSAGE_V2 false false 11
MESSAGE_V3 MESSAGE_V3 false false 11
MESSAGE_V4 MESSAGE_V4 false false 11
PARAMETER PARAMETER false false 11
ROW ROW false false 11
FIELD FIELD false false 11
SYSTEM SYSTEM false false 11
My java code is :
public class MyTest {
public static void main(String[] args){
try{
Stub stub = (Stub)new ZSMS_INBOUNDServiceImpl().getLogicalPort();
stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,"http://mytest:8080/sap/bc/srt/rfc/sap/ZSMS_INBOUND?sap-client=100");
ZSMS_INBOUND inboundService = (ZSMS_INBOUND) stub;
BAPIRET2 str = inboundService.ZSMS_INBOUND(param1,param2,param3,param4,param5,param6);
System.out.println(str.toString());
}catch (Exception e) {
e.printStackTrace(); -
Problem creating Web Service in 11g from PeopleSoft WSDL
I created a Web Service in PeopleSoft (Tool 8.48 Release 9.0) from a Component Interface based on POSITION_DATA. Trying to create a web service in JDeveloper 11g to connect to this. Create a New Web Service, type Web Service Proxy. Select JAX-RPC Web Logic Style. Paste in the WSDL address (http://xxx.com:11001/PSIGW/PeopleSoftListeningConnector/CI_Z_POSITION_DATA.1.wsdl). No matter what type or style I get the same error.
The document: http://xxx.com:11001/PSIGW/PeopleSoftListeningConnector/CI_Z_POSITION_DATA.1.wsdl is not a wsdl file or does not have a root element of "definitions" in the "http://schemas.xmlsoap.org/wsdl/" namespace or the "http://www.w3.org/2004/08/wsdl" namespace.:
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseDefinition(WSDLReaderImpl.java:723)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:661)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:610)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:333)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:570)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:548)
at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:372)
at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:294)
at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.fetchWSDL(SpecifyWsdlPanel.java:1002)
at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlAndMappingFilePanel.fetchWSDL(SpecifyWsdlAndMappingFilePanel.java:232)
at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$1.run(SpecifyWsdlPanel.java:346)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:643)
at java.lang.Thread.run(Thread.java:619)
The WSDL looks like this. When I access it directly in IE it says it is active. Any one have any thoughts?
<?xml version="1.0"?>
<wsdl:definitions name="CI_Z_POSITION_DATA.1" targetNamespace="http://xmlns.oracle.com/Enterprise/Tools/services/CI_Z_POSITION_DATA.1" xmlns:M264705.V1="http://xmlns.oracle.com/Enterprise/Tools/schemas/M264705.V1" xmlns:M650531.V1="http://xmlns.oracle.com/Enterprise/Tools/schemas/M650531.V1" xmlns:M970925.V1="http://xmlns.oracle.com/Enterprise/Tools/schemas/M970925.V1" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://xmlns.oracle.com/Enterprise/Tools/services/CI_Z_POSITION_DATA.1" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy">
<wsp:UsagePolicy wsdl:Required="true"/>
<plnk:partnerLinkType name="CI_Z_POSITION_DATA_PartnerLinkType">
<plnk:role name="CI_Z_POSITION_DATA_Provider">
<plnk:portType name="tns:CI_Z_POSITION_DATA_PortType"/>
</plnk:role>
</plnk:partnerLinkType>
<wsdl:types>
<xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://xmlns.oracle.com/Enterprise/Tools/schemas/M970925.V1" schemaLocation="M970925.V1.xsd"/>
<xsd:import namespace="http://xmlns.oracle.com/Enterprise/Tools/schemas/M650531.V1" schemaLocation="M650531.V1.xsd"/>
<xsd:import namespace="http://xmlns.oracle.com/Enterprise/Tools/schemas/M264705.V1" schemaLocation="M264705.V1.xsd"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="M970925.V1">
<wsdl:documentation>M970925</wsdl:documentation>
<wsdl:part element="M970925.V1:Get__CompIntfc__Z_POSITION_DATA" name="parameter"/>
</wsdl:message>
<wsdl:message name="M650531.V1">
<wsdl:documentation>M650531</wsdl:documentation>
<wsdl:part element="M650531.V1:Get__CompIntfc__Z_POSITION_DATAResponse" name="parameter"/>
</wsdl:message>
<wsdl:message name="M264705.V1">
<wsdl:documentation>M264705</wsdl:documentation>
<wsdl:part element="M264705.V1:IBResponse" name="parameter"/>
</wsdl:message>
<wsdl:portType name="CI_Z_POSITION_DATA_PortType">
<wsdl:operation name="CI_Z_POSITION_DATA_G">
<wsdl:documentation>CI_Z_POSITION_DATA_G</wsdl:documentation>
<wsdl:input message="tns:M970925.V1" name="M970925.V1"/>
<wsdl:output message="tns:M650531.V1" name="M650531.V1"/>
<wsdl:fault message="tns:M264705.V1" name="M264705.V1"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CI_Z_POSITION_DATA_Binding" type="tns:CI_Z_POSITION_DATA_PortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="CI_Z_POSITION_DATA_G">
<soap:operation soapAction="CI_Z_POSITION_DATA_G.V1" style="document"/>
<wsp:Policy wsu:Id="UsernameTokenSecurityPolicyPasswordOptional" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsp:ExactlyOne>
<wsp:All>
<wsse:SecurityToken wsp:Usage="wsp:Required" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:TokenType>wsse:UserNameToken</wsse:TokenType>
<Claims>
<SubjectName MatchType="wsse:Exact"/>
<UsePassword wsp:Usage="wsp:Optional"/>
</Claims>
</wsse:SecurityToken>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
<wsdl:input name="M970925.V1">
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
</wsdl:input>
<wsdl:output name="M650531.V1">
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
</wsdl:output>
<wsdl:fault name="M264705.V1">
<soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="M264705.V1" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CI_Z_POSITION_DATA">
<wsdl:documentation>CI_Z_POSITION_DATA</wsdl:documentation>
<wsdl:port binding="tns:CI_Z_POSITION_DATA_Binding" name="CI_Z_POSITION_DATA_Port">
<soap:address location="http://ORACLE_ENDPOINT"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>Hi,
Looking at your document URL for the WSDL, the PeopleSoft IB should contain "Service" in it's name, it looks like you are using your IB Gateway URL instead.
This is what you posted:
- http://xxx.com:11001/PSIGW/PeopleSoftListeningConnector/CI_Z_POSITION_DATA.1.wsdl
Try the following and this should resolve your problem.
- http://xxx.com:11001/PSIGW/PeopleSoftServiceListeningConnector/CI_Z_POSITION_DATA.1.wsdl
Regards,
Dan -
Extrange problem invoking web services
Hi everybody.
I'm writting a HTML client which calls a Web service. I use BEA 8.1 as web serser.
The name of the html file is : Dos.html
<HTML>
<SCRIPT language="JavaScript">
function List(){
ServicioWeb.useService("http://localhost:7001/APPTienda/Tienda?WSDL","Tienda");
CallID=ServicioWeb.Tienda.callService("Autorizado",123,"pepe");
function Resultado(){
if (event.result.error) alert("ERROR: "+event.result.errorDetail.string);
else{
document.writeln(event.result.value);
document.writeln("<a href='Dos.html'> IR</a>")
</SCRIPT>
<BODY onLoad="List()">
<DIV ID="ServicioWeb" STYLE="behavior:url(webservice.htc)" onresult="Resultado()"></DIV>
</BODY>
</HTML>
As you can see this example only shows the result of the service 'Autorizado'
and a link to reload the same web page.
Everythig runs ok. The problem arises when the page is reloaded 12 times. The
last time nothing is written, and the web page is blank.
Does anybody know the reason? How do I solve it?
Regards
Jose Luishttp://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=4635
Jose Luis wrote:
>
Hi everybody.
I'm writting a HTML client which calls a Web service. I use BEA 8.1 as web serser.
The name of the html file is : Dos.html
<HTML>
<SCRIPT language="JavaScript">
function List(){
ServicioWeb.useService("http://localhost:7001/APPTienda/Tienda?WSDL","Tienda");
CallID=ServicioWeb.Tienda.callService("Autorizado",123,"pepe");
function Resultado(){
if (event.result.error) alert("ERROR: "+event.result.errorDetail.string);
else{
document.writeln(event.result.value);
document.writeln("<a href='Dos.html'> IR</a>")
</SCRIPT>
<BODY onLoad="List()">
<DIV ID="ServicioWeb" STYLE="behavior:url(webservice.htc)" onresult="Resultado()"></DIV>
</BODY>
</HTML>
As you can see this example only shows the result of the service 'Autorizado'
and a link to reload the same web page.
Everythig runs ok. The problem arises when the page is reloaded 12 times. The
last time nothing is written, and the web page is blank.
Does anybody know the reason? How do I solve it?
Regards
Jose Luis -
Problem with web service proxy and connections.xml
JDev 11.1.14
Hello
I'm trying to create a web service proxy that takes advantage of the connections.xml so that the endpoints can be changed without recompiling the code (as described here http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/web_services.htm#ADFFD548 - 13.2.2 How to Create a New Web Service Connection)
I created the web service proxy using the Jdev wizard and a test client. The access to the web service works as expected.
The client test code is :
package model;
import ch.mit.trac.ws.proxy.*;
import ch.mit.trac.ws.root.Currency;
import javax.naming.NamingException;
public class wsTest {
public wsTest() {
super();
public void testIt() throws NamingException {
CurrencyConvertor currencyConvertor = new CurrencyConvertor();
CurrencyConvertorSoap currencyConvertorSoap = currencyConvertor.getCurrencyConvertorSoap();
Double res = currencyConvertorSoap.conversionRate(Currency.CHF, Currency.USD);
System.out.println("Hello");
System.out.println(res);
public static void main(String [] args) throws NamingException {
wsTest tt = new wsTest();
tt.testIt();
}I then create a connection as described in the docs.
I now have a connections.xml as follows:
<?xml version = '1.0' encoding = 'UTF-8'?>
<References xmlns="http://xmlns.oracle.com/adf/jndi">
<Reference name="CurrencyConvertor" className="oracle.adf.model.connection.webservice.impl.WebServiceConnectionImpl" xmlns="">
<Factory className="oracle.adf.model.connection.webservice.api.WebServiceConnectionFactory"/>
<RefAddresses>
<XmlRefAddr addrType="WebServiceConnection">
<Contents>
<wsconnection description="file:/C:/JDeveloper/mywork/WebServiceTest/Model/src/ch/mit/trac/ws/proxy/CurrencyConvertor.wsdl" service="{http://www.webserviceX.NET/}CurrencyConvertor">
<model name="{http://www.webserviceX.NET/}CurrencyConvertor" xmlns="http://oracle.com/ws/model">
<service name="{http://www.webserviceX.NET/}CurrencyConvertor">
<port name="CurrencyConvertorHttpPost" binding="{http://www.webserviceX.NET/}CurrencyConvertorHttpPost">
<operation name="ConversionRate">
<output name=""/>
<input name=""/>
</operation>
</port>
<port name="CurrencyConvertorHttpGet" binding="{http://www.webserviceX.NET/}CurrencyConvertorHttpGet">
<operation name="ConversionRate">
<output name=""/>
<input name=""/>
</operation>
</port>
<port name="CurrencyConvertorSoap12" binding="{http://www.webserviceX.NET/}CurrencyConvertorSoap12">
<soap addressUrl="http://www.webservicex.com/CurrencyConvertor.asmx" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<operation name="ConversionRate">
<soap soapAction="http://www.webserviceX.NET/ConversionRate" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
</port>
<port name="CurrencyConvertorSoap" binding="{http://www.webserviceX.NET/}CurrencyConvertorSoap">
<soap addressUrl="http://www.webservicex.com/CurrencyConvertor.asmx" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<operation name="ConversionRate">
<soap soapAction="http://www.webserviceX.NET/ConversionRate" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
</port>
</service>
</model>
</wsconnection>
</Contents>
</XmlRefAddr>
</RefAddresses>So far so good.
I then created a new jspx page with a button that calls a method in a request scoped bean.
The method is supposed to use the connections.xml to get the web service proxy in order to call the web service.
The bean code is as follows :
package ch.mit.test;
import javax.faces.event.ActionEvent;
import ch.mit.trac.ws.proxy.*;
import ch.mit.trac.ws.root.Currency;
import javax.naming.Context;
import javax.naming.NamingException;
import oracle.adf.model.connection.webservice.api.WebServiceConnection;
import oracle.adf.share.ADFContext;
public class test {
public test() {
public void testIt() throws NamingException {
Context ctx;
ctx = ADFContext.getCurrent().getConnectionsContext();
WebServiceConnection wsc;
wsc = (WebServiceConnection) ctx.lookup("CurrencyConvertor");
CurrencyConvertor currencyConvertor = wsc.getJaxWSPort(CurrencyConvertor.class); -- NPE here
CurrencyConvertorSoap currencyConvertorSoap = currencyConvertor.getCurrencyConvertorSoap();
Double res = currencyConvertorSoap.conversionRate(Currency.CHF, Currency.USD);
System.out.println("Hello");
System.out.println(res);
public void testws(ActionEvent actionEvent) {
try {
testIt();
} catch (NamingException e) {
}When running the application and clicking on the button I keep getting the following error at the line marked NPE Here above:
<LifecycleImpl> <_handleException> ADF_FACES-60098:Le cycle de vie Faces reçoit des exceptions non traitées en phase INVOKE_APPLICATION 5
javax.faces.el.EvaluationException: java.lang.NullPointerException
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:765)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:305)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused by: java.lang.NullPointerException
at java.lang.Class.isAssignableFrom(Native Method)
at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:97)
at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:118)
at oracle.j2ee.ws.common.jaxws.runtime.OperationMappingModeler.processParameters(OperationMappingModeler.java:268)
at oracle.j2ee.ws.common.jaxws.runtime.OperationMappingModeler.processMethod(OperationMappingModeler.java:155)
at oracle.j2ee.ws.common.jaxws.runtime.ServiceEndpointRuntimeModeler.buildRuntimeModel(ServiceEndpointRuntimeModeler.java:114)
at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.getRuntimeMetadata(WsClientProxyFactory.java:69)
at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.createProxy(WsClientProxyFactory.java:126)
at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.createProxy(WsClientProxyFactory.java:106)
at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:219)
at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:249)
at oracle.adf.model.connection.webservice.impl.WebServiceConnectionImpl.getJaxWSPort(WebServiceConnectionImpl.java:399)
at ch.mit.test.test.testIt(test.java:27)
at ch.mit.test.test.testws(test.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
... 44 moreCan anybody help as to what the problem is...
(the WSDL is at http://www.webservicex.com/CurrencyConvertor.asmx?WSDL)
Regards
PaulHi Frank
The page is ADF bound, I've added the page source and the adfc-config source below :
Page
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:commandButton text="commandButton 1" id="cb1"
actionListener="#{test.testws}"/>
</af:form>
</af:document>
</f:view>
</jsp:root>adfc-config
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<view id="view1">
<page>/view1.jspx</page>
</view>
<managed-bean id="__4">
<managed-bean-name id="__3">test</managed-bean-name>
<managed-bean-class id="__2">ch.mit.test.test</managed-bean-class>
<managed-bean-scope id="__1">request</managed-bean-scope>
</managed-bean>
</adfc-config>It seems to be the same sort of problem as in Re: Error in ADF Web Service Connection
Regards
Paul -
Problem running web service on Turnkey 8.0.1 LiveCycle server
Greetings:
I need assistance in locating a problem on a turnkey installation of 8.0.1.
I am trying to get a new installation of this code base running to provide an environment that matches some of my clients.
The server runs, and I can log into all of the Administrator pages, etc.
The scenario is I create a new process in Workbench 8, that for now just rights to the server log.
I create a new PDF document, and add a data connection to my WSDL.
I try to invoke the service and get the message "Error attempting to read from file".
If I have security enabled on the service via the AdminUI, I get no messages in the server log.
If I disable security for the service, I see the following in the server log:
INFO [com.adobe.workflow.AWS] Invoking action synchronously
INFO [STDOUT] Feb 3, 2009 11:12:04 AM com.adobe.idp.jobmanager.ejb.JobManagerBean getServiceClientFactory
SEVERE: JobManager:getServiceClientFactory(userContext):invocation context is null, using null context to create job
INFO [STDOUT] Feb 3, 2009 11:12:04 AM com.adobe.idp.jobmanager.ejb.JobManagerBean doOnMessage
SEVERE: JobManagerBean:onMessage():Exception:ALC-DSC-213-000: com.adobe.idp.dsc.DSCException: No Credential or Context set
INFO [STDOUT] ALC-DSC-213-000: com.adobe.idp.dsc.DSCException: No Credential or Context set
INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:84)
INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
INFO [STDOUT] at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:113)
INFO [STDOUT] at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:102)
INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:88)
INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 0)
INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
INFO [STDOUT] at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
INFO [STDOUT] at com.adobe.idp.jobmanager.ejb.JobManagerBean.doOnMessage(JobManagerBean.java:967)
INFO [STDOUT] at com.adobe.idp.jobmanager.ejb.JobManagerBean.onMessage(JobManagerBean.java:817)
INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
INFO [STDOUT] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.j ava:475)
INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 58)
INFO [STDOUT] at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT. java:32)
INFO [STDOUT] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterc eptor.java:101)
INFO [STDOUT] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)
INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
INFO [STDOUUpdate - Sort of Working
Thanks to a posting by Paul Guerette here->
Paul Guerette, "ALC-DSC-213-000 Error on WebService" #1, 16 Jan 2009 6:44 am
I have been able to get the web service to fire.
The process is dying trying to send e-mail using the SendEmailService.
It generates an exception of type "Exception" - flows thru an "Execute Script" that dumps text to the log file, then blow off with this:
INFO [com.adobe.workflow.AWS] Invoking action synchronously
INFO [STDOUT] @@@@ START New-Mult-Mark-Adobe02 @@@@
INFO [com.adobe.workflow.AWS] Invoking action synchronously
INFO [com.adobe.workflow.AWS] Invoking action synchronously
INFO [STDOUT]
[PID:-1] [ActionID:-1] Action Name: "Variable Logger" Start...
INFO [STDOUT]
[PID:-1] [ActionID:-1] End!
INFO [com.adobe.workflow.AWS] Invoking action synchronously
INFO [STDOUT] @@@@ Exception ERROR New-Mult-Mark-Adobe02 @@@@
INFO [STDOUT] Feb 3, 2009 2:23:53 PM com.adobe.idp.jobmanager.ejb.JobManagerBean getServiceClientFactory
SEVERE: JobManager:getServiceClientFactory(userContext):invocation context is null, using null context to create job
INFO [STDOUT] Feb 3, 2009 2:23:53 PM com.adobe.idp.jobmanager.ejb.JobManagerBean doOnMessage
SEVERE: JobManagerBean:onMessage():Exception:ALC-DSC-213-000: com.adobe.idp.dsc.DSCException: No Credential or Context set
INFO [STDOUT] ALC-DSC-213-000: com.adobe.idp.dsc.DSCException: No Credential or Context set
INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:84)
INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
INFO [STDOUT] at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:113)
INFO [STDOUT] at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:102)
INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:88)
INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 0)
INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
INFO [STDOUT] at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
INFO [STDOUT] at com.adobe.idp.jobmanager.ejb.JobManagerBean.doOnMessage(JobManagerBean.java:967)
INFO [STDOUT] at com.adobe.idp.jobmanager.ejb.JobManagerBean.onMessage(JobManagerBean.java:817)
INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
INFO [STDOUT] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.j ava:475)
INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 58)
INFO [STDOUT] at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT. java:32)
INFO [STDOUT] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterc eptor.java:101)
INFO [STDOUT] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)
INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
INFO [STDOUT] at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)
INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java:873)
INFO [STDOUT] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1077)
INFO [STDOUT] at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerI nvoker.java:1379)
INFO [STDOUT] at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)
INFO [STDOUT] at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904 )
INFO [STDOUT] at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)
INFO [STDOUT] at org.jboss.mq.SpySession.run(SpySession.java:333)
INFO [STDOUT] at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
INFO [STDOUT] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
INFO [STDOUT] at java.lang.Thread.run(Thread.java:595) -
Hi All,
I am having some problems in webservice. I am calling XMII via web service from external application and I have to get back the reply. I am able to make a call it also reached the XMII but I am not getting the reply back to external application. It goes in to fault direction with the error "WebService Error contacting the remote server: Format error: XML Error: line 1 col 1 message Invalid document structure".
Thanks in advance,
Murugappan.Hi
Instead of using SOAPRunner use WSDLGen
ie:
http://<machineName>/Lighthammer/WSDLGen/<Complete path of your transaction w.r.t Transactions folder>
eg:
http://<machineName>/Lighthammer/WSDLGen/XXX_xMII_Transactions/TCL/SAP_xMII_TCL_Transactions/MPODownLoad.
Also make sure that you dont write the .trx extension while calling the webservice
Award pts if it helps.
Regards
Shabareesh -
Problem deploying web service with the deploy tool (J2EE)
Hello,
I am trying to deploy a sample Web Service on the Sun Java System Application Server Platform Edition 8.1 2005Q1.
I run into a deployment problem ("jaxrpc compilation exception") when I have one of the web methods declared (in the endpoint interface) to throw a service-specific exception. The problem disappears when I change the declaration to throw an Exception.
Here is the exception class:
public class StockNotFoundException extends Exception {
private String message;
public StockNotFoundException(String message) {
super(message);
this.message = message;
public String getMessage() {
return message;
the endpoint interface:
public interface StockServiceIF extends Remote {
// the service methods
public boolean sellStocks(String ticker, int quantity)
throws RemoteException, StockNotFoundException;
and here are the error messages I am seeing:
in the deploy tool dialog:
distribute: C:\Beginning J2EE 1.4\Ch13\StockServiceApp\StockServiceApp.ear
deployment started : 0%
Deploying application in domain failed; Fatal Error from EJB Compiler -- jaxrpc compilation exception
; requested operation cannot be completed
!!! Operation Failed !!!
!!! With The Following Failure Messages !!!
Deploying application in domain failed; Fatal Error from EJB Compiler -- jaxrpc compilation exception
; requested operation cannot be completed
Fatal Error from EJB Compiler -- jaxrpc compilation exception
and in the server log:
[#|2005-02-01T18:30:47.856-0600|INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_ThreadID=12;|DPL5109: EJBC - START of EJBC for [StockServiceApp]|#]
[#|2005-02-01T18:30:47.856-0600|INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_ThreadID=12;|Processing beans ...|#]
[#|2005-02-01T18:30:47.936-0600|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=12;|
error: incorrect fault part name for fault "StockNotFoundException" of operation "sellStocks": "StockNotFoundException"|#]
[#|2005-02-01T18:30:47.966-0600|INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_ThreadID=12;|Total Deployment Time: 1001 msec, Total EJB Compiler Module Time: 0 msec, Portion spent EJB Compiling: 0%|#]
[#|2005-02-01T18:30:47.966-0600|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_ThreadID=12;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- jaxrpc compilation exception
at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:206)
at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:584)
at com.sun.enterprise.deployment.Application.visit(Application.java:1333)
at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.run(JaxRpcRICodegen.java:103)
at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:785)
at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563)
at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployApp(EJBCompiler.java:340)
at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:209)
at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:284)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:176)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:107)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:188)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:520)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:143)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:171)
|#]
I would appreciate any pointers to resolving this issue.
Thanks,
SatyenCan you post the WSDL that was generated by the tool
for this interface ?I generate the WSDL using "wscompile -define -nd . -classpath ..\build\classes -f:wsi service-config.xml", and here it is:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="StockService" targetNamespace="urn:stockService" xmlns:tns="urn:stockService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<schema targetNamespace="urn:stockService" xmlns:tns="urn:stockService" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="StockNotFoundException">
<sequence>
<element name="message" type="string" nillable="true"/></sequence></complexType>
<element name="StockNotFoundException" type="tns:StockNotFoundException"/></schema></types>
<message name="StockServiceIF_sellStocks">
<part name="String_1" type="xsd:string"/>
<part name="int_2" type="xsd:int"/></message>
<message name="StockServiceIF_sellStocksResponse">
<part name="result" type="xsd:boolean"/></message>
<message name="StockNotFoundException">
<part name="StockNotFoundException" element="tns:StockNotFoundException"/></message>
<portType name="StockServiceIF">
<operation name="sellStocks" parameterOrder="String_1 int_2">
<input message="tns:StockServiceIF_sellStocks"/>
<output message="tns:StockServiceIF_sellStocksResponse"/>
<fault name="StockNotFoundException" message="tns:StockNotFoundException"/></operation></portType>
<binding name="StockServiceIFBinding" type="tns:StockServiceIF">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
<operation name="sellStocks">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal" namespace="urn:stockService"/></input>
<output>
<soap:body use="literal" namespace="urn:stockService"/></output>
<fault name="StockNotFoundException">
<soap:fault name="StockNotFoundException" use="literal"/></fault></operation></binding>
<service name="StockService">
<port name="StockServiceIFPort" binding="tns:StockServiceIFBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
--------------------------------------------------------------------------------------------------------- -
Having problems starting Web Services... need help!
I'm running Mac Server 10.5.7 currently configured for email and I've just decided to start hosting websites. The problem I'm having is that Web Services will fail to start with any sites configured. Web Services will start if I don't have any sites configured. I've messed around with the Terminal app using some advice from online posts, but that didn't help. I'm not even sure I did it right.
http://discussions.apple.com/thread.jspa?messageID=9508628
I tried to understand the error log, but I'm not savy enough to translate. Does anyone have any idea why this would be happening.
Here's the log error:
166.137.132.186 - - [25/Jun/2009:15:58:49 -0400] "GET / HTTP/1.1" 403 1043
192.168.5.2 - - [25/Jun/2009:16:00:02 -0400] "OPTIONS * HTTP/1.0" 200 -
192.168.5.2 - - [25/Jun/2009:16:00:02 -0400] "OPTIONS * HTTP/1.0" 200 -
192.168.5.2 - - [25/Jun/2009:16:03:23 -0400] "OPTIONS * HTTP/1.0" 200 -
192.168.5.2 - - [25/Jun/2009:16:03:23 -0400] "OPTIONS * HTTP/1.0" 200 -
166.137.133.190 - - [25/Jun/2009:16:03:36 -0400] "GET / HTTP/1.1" 403 1053
192.168.5.2 - - [25/Jun/2009:16:03:41 -0400] "OPTIONS * HTTP/1.0" 200 -
66.150.226.65 - - [25/Jun/2009:16:08:01 -0400] "GET /coupon.html HTTP/1.1" 404 1072
66.150.226.65 - - [25/Jun/2009:16:08:08 -0400] "GET / HTTP/1.1" 403 1062
208.99.193.6 - - [25/Jun/2009:16:09:34 -0400] "GET / HTTP/1.0" 403 1062
192.168.5.2 - - [25/Jun/2009:16:10:11 -0400] "OPTIONS * HTTP/1.0" 200 -
192.168.5.2 - - [25/Jun/2009:16:10:12 -0400] "OPTIONS * HTTP/1.0" 200 -
166.137.133.190 - - [25/Jun/2009:16:10:24 -0400] "GET / HTTP/1.1" 403 1053
192.168.5.2 - - [25/Jun/2009:16:10:40 -0400] "OPTIONS * HTTP/1.0" 200 -
192.168.5.2 - - [25/Jun/2009:16:13:36 -0400] "OPTIONS * HTTP/1.0" 200 -
192.168.5.2 - - [25/Jun/2009:16:13:36 -0400] "OPTIONS * HTTP/1.0" 200 -
166.137.132.179 - - [25/Jun/2009:16:13:47 -0400] "GET / HTTP/1.1" 403 1053
192.168.5.2 - - [25/Jun/2009:16:15:23 -0400] "OPTIONS * HTTP/1.0" 200 -
192.168.5.2 - - [25/Jun/2009:16:15:23 -0400] "OPTIONS * HTTP/1.0" 200 -
192.168.5.2 - - [25/Jun/2009:16:15:23 -0400] "OPTIONS * HTTP/1.0" 200 -
166.137.133.30 - - [25/Jun/2009:16:15:31 -0400] "GET / HTTP/1.1" 403 1053
192.168.5.2 - - [25/Jun/2009:16:15:41 -0400] "OPTIONS * HTTP/1.0" 200 -
192.168.5.2 - - [25/Jun/2009:16:21:01 -0400] "OPTIONS * HTTP/1.0" 200 -
192.168.5.2 - - [25/Jun/2009:16:21:01 -0400] "OPTIONS * HTTP/1.0" 200 -
192.168.5.2 - - [25/Jun/2009:16:21:01 -0400] "OPTIONS * HTTP/1.0" 200 -
119.63.193.56 - - [25/Jun/2009:16:21:13 -0400] "GET /robots.txt HTTP/1.1" 404 1066
166.137.133.137 - - [25/Jun/2009:16:21:31 -0400] "GET / HTTP/1.1" 403 1059
192.168.5.2 - - [25/Jun/2009:16:21:40 -0400] "OPTIONS * HTTP/1.0" 200 -
Any help would be greatly appreciated.
Thanks in advance. -mSo, I've read through all the documents and tried to apply what I've learned. I must say, I dove in head first. There's a lot to digest here. Maybe I'm reading too much.
I ran the Terminal and 'sudo' command you requested. This is the result.
"Syntax Ok."
Since posting this question I've installed mySQL, but I'm not exactly sure what it does.
I've tried changing to the httpd.conf file, but nothing is working. All I get when I type in "localhost" is cannot "connect to web server". At least before I was getting the "apple default page".
Need some advice on how to get this all straightened out. Looks like I made a pretty good mess of things.
Thanks for all the help! -
Problem generating Web Service with business methods in multiple EJB's
Hi,
I'm I a "web service novice" but I'm working with an
application which was developed in an earlier version
of Studio which has
~30 business method coming from ~12 EJB's. When I attempt
to recreate the Web Service in Java Studio Enterprise 7 (had same problem versions 5 and 6) I have trouble. When I execute the "Generate Web Service Files" command I get complilation errors in the <webservice_name>.java file. It is obvious that the
protected Map theJNDIMap = makeJNDIMap();
protected Map makeJNDIMap() {
Map m = new HashMap();
// This map might get changed at deployment time
m.put(......
is all screwed up. Entries are missing and the closing bracket isn't even there.
Is there some user error on my part?
Is this a know bug (I couldn't any info. and I get the same behavior on the current and older versions of Studio)?
Is there a workaround? I can fix this particular java file and compile it sucessfully. However, I'm still missing many of the other web service files that should be generated for me.
All the tutorials on web services that I've done to looked over all get there business method from 1 EJB :(
Please advise,
Freda PhelpsI had a problem too. Successfully created an EJB and its test application. Tested the same using Web client and works fine. Now created a web service from EJB methods. It created the skeletons. When tried creating Web Svc test client or web svc other files..it gives me an exception saying xmlservices.jar doesnt exist in the C:\Docs and Settings\<$username>\.jstudio\Ent04Q4modules. I have searched for this file and copied (overwritten) it into this directory. But still i cant proceed further.
-
Problem with web service that returns an object with a String that have som
Hi everybody:
I have a problem with a web service I am doing, I have made a web service that returns a collection of objects, the objects have a set of properties, there is one property that is a String,this property consists in a text fragment that could have some characters that are considered special in XML like &, <, >, " and that's why when I execute the service from a client an exception is thrown:
{code}
Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not read XML stream.. Nested exception is com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT.
at [row,col {unknown-source}]: [9,646]
org.codehaus.xfire.fault.XFireFault: Could not read XML stream.. Nested exception is com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT.
at [row,col {unknown-source}]: [9,646]
at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
at org.codehaus.xfire.client.Client.onReceive(Client.java:410)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
at org.codehaus.xfire.client.Client.invoke(Client.java:336)
at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
at $Proxy0.search(Unknown Source)
at cu.co.cenatav.webservices.client.Client.main(Client.java:26)
{code}
I know that this is happening because special characters are sent by the soap message but I don't know how to solve this problem.
How could I avoid this exception ?
I hope you can help me.
Regards.
ArielHi,
BPEL and BPEL PM do not have a good support for SOAPENC-Array: it would be very difficult to create such an array in BPEL or to receive it and manipulate it.
The (unfortunately very intrusive) work around is to change the WSDL of the service to use a XML type defined using XML schema. This is all the more painful that JDev 9.0.4 does not have strong support for complex types.
In general though, I would highly recommend this best practice:
1) Start by define the WSDL contract first
2) Then generate the server side skeleton to implement it
3) Use BPEL as the client to this contract.
By starting with the contract first, you make sure that 1) your interfaces are clean and coarse grained.
2) things like java objects, sessions, etc to not leak through the interface (which would be the worst thing that could happen because it would closely link the client and the server.
Sorry for not being more helpful. This will get radically cleaner in Oracle AS 10.1.3.
Edwin
Maybe you are looking for
-
I'm looking for an app to catalog contacts I am making.
I'm looking for an app to catalog contacts I am making. I would like to snap a picture of a product or idea and then log it into an app to which I could add notes about that product as well as be able to attach contact information for this product or
-
Advice on Fixing/Setting Up Mac Server behind Router
I would like advice on how to setup/fix a Mac Snow Leopard (10.6.8) server running on an Xserve. The server is only used to to host network accounts / act as a remote drive for a Mac-based laboratory. It is not a mail server, web server, etc. The goa
-
E51: Using Blackberry connect/Mail for Exchange
-If youre "always online," how long till your battery runs out of power? Mine is just 2 days tops! -Have you experienced no sound alert when you receive emails via Blackberry/Mail for Exchange even though the Profile sound settings are appropriately
-
Obsolete keywords/techniques in ECC 6
Hi Experts, I have developed few HR Payroll reports in R/3 4.7. Currently I am developing Payroll reports for ECC 6. I found that most of Hr keywords/techniques I used with R/3 4.7 are obsolete with ECC6. If so, are there any alternative techniques p
-
Displaying Business Partner Number in IDOC status
I am trying to create a business partner using idoc CRMXIF_PARTNER_SAVE_M03 in we19. Idoc is getting created but does not display the business partner number in 53 status message. When i check the in BP transaction using the last name it shows i.e. i