Steps to expose a web service without using SR
Hello,
How can I expose a web service without using the service registry? Is there some documentation for this process?
Thanks,
Matt
Thanks for the response. Although, I do not have an * in the Sender Agreement.
Here is the situation:
When I attempt to reach the URL for my Web Service but using NWA instead of the Service Call I get into NWA.
https://xxxxx.steelcasedev.com/nwa
Result: Success
When I use SOAPSonar to run this URL I get the CPA error:
https://xxxxx.steelcasedev.com//XISOAPAdapter/MessageServlet?senderParty=&senderService=WSProcurement_Async_Sender&receiverParty=&receiverService=Steelcase_Dev&interface=WSProcure_Out&interfaceNamespace=urn:steelcasedev.com:wsprocure:xsuppliers
Result: Error
<context>XIAdapter</context>
<code>ADAPTER.JAVA_EXCEPTION</code>
<text><![CDATA[
com.sap.aii.af.service.cpa.CPAException: com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldn't retrieve inbound binding for the given P/S/A values: FP=;TP=;FS=WSProcurement_Async_Sender;TS=Steelcase_SAPR3_D01;AN=WSProcurement_Out;ANS=urn:steelcase.com:wsprocurement:xml2suppliers;
at com.sap.aii.af.service.cpa.impl.lookup.CommonLookup.checkForError(CommonLookup.java:53)
at com.sap.aii.af.service.cpa.InboundRuntimeLookup.getBinding(InboundRuntimeLookup.java:411)
at com.sap.aii.af.service.cpa.impl.lookup.AbstractLookupManager.getBinding(AbstractLookupManager.java:714)
at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:430)
The sender adapter is active in ID but in RTWB it is "Started but Inactive". I have found that this status could be related to the fact that I have not had a successful transaction for that channel yet.
My NW Admin says he found this error:
Marked transaction for rollback for message 0015605e-09d7-1ddf-94f7-d5031c019713(INBOUND). Reason: Channel has been configured as inactive and cannot accept messages
I am quite confused.
Thanks,
Matt
Similar Messages
-
Web Services without using the API
Hi. I'm new to Web Services. I've been able to call a web service and get my result back without using the Web Services API -- easy enough. My question is this.... the concept of web services has been around for a long time... longer than the web services API. Can I not write a simple servlet it Java that would function as a Web Service without having to use the Web Services API.
For example,
Calling XML:
<action><delete>jdoe</delete></action>
Servlet recieves this as a stream, deletes the associated ID and returns:
<action><result>Success</result></action>
or
<action><result>Failed</result></action>
This seems to me like it would be pretty generic stuff (not requiring the API) and pretty basic (not very large).
Can anyone head me in the right direction with this or provide an example?
Thank you.
drCan... Servlet is very powerful to write the web services...
-
How to return List or Array from Web Service without using ADF?
All,
I would like to know how to do this before I use ADF. Sounds like a simple thing to do - common even - but I haven't found a solution in existing postings. My attempts have failed though I'm not sure exactly why.
I have created a declarative WS that takes a single parameter and tries to return a List<Employees> resultset. My Sample Java Client works just fine. When I change the result type from List to String[], for example, it also works fine.
What am I doing wrong??
Thanks
package wizard;
(imports removed for readability)
@WebService(name = "MyWebService1", serviceName = "MyWebService1", portName = "MyWebService1SoapHttpPort")
@Deployment(restSupport = true)
public class HelloWorld {
List<Employees> employees = null;
public HelloWorld() {
public List<Employees> sayHello (String s) {
try {
final Context context = getInitialContext();
ATOABPFacade aTOABPFacade = (ATOABPFacade)context.lookup("ATOABPFacade");
employees = aTOABPFacade.queryEmployeesFindByName(s);
return employees;
} catch (Exception ex) {
ex.printStackTrace();
return employees;
private static Context getInitialContext() throws NamingException {
return new InitialContext();
Trace:
Ready message received from Oc4jNotifier.
Embedded OC4J Server startup time: 24063 ms.
Target URL -- http://localhost:8988/JPA-Wizard-context-root/mywebservice1soaphttpport
Feb 18, 2008 7:42:49 PM com.evermind.server.ServerBase log
WARNING: JPA-Wizard-webapp: Error preloading servlet
javax.servlet.ServletException: java.lang.NullPointerException
at oracle.j2ee.ws.server.provider.ProviderServlet.init(ProviderServlet.java:186)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:5275)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1357)
at com.evermind.server.http.HttpApplication.init(HttpApplication.java:873)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:699)Gi,
not sure what you are doing there, but you can build the J2EE WebService from your working POJO, and create a Web Service proxy class from the WSDL description (of the deployed or local WSDL file). Then, using the proxy class, you can access the output of the WebService.
Frank -
Invoking Web Services Without Using the WSDL File - RPC
I would apprecite if someone can provide sample code
for RPC client for WeatherEJB sample code without using wsdl file.
Thanks ,
agHi,
Attached is a small program that calls a service CurrencyExchangeRate
registered at www.xmethods.com.
The program uses pure java to call the service.
Hope that helps
Thanks
Amit Chauhan
ag <[email protected]> wrote in message
news:3c59734d$[email protected]..
>
I would apprecite if someone can provide sample code
for RPC client for WeatherEJB sample code without using wsdl file.
Thanks ,
ag[webservice.java] -
Publish PL/SQL package as a web service without using Oracle AS?
Hello, my question is:
Can I publish a PL/SQL package as a web service in Oracle10g directly from the
database and/or the oracle http server, without needing Oracle Application
Server?
Thank you in advance.Hi,
there is a tutorial:
http://www.oracle.com/technology/obe/obe1013jdev/10131/wsfromplsqlpackage/devwsfrom%20plsql.htm
"Developing a Web Service from a PL/SQL Package"
I think you need Oracle AS, because you need an instance which "talks" http.... -
Recommended steps to generate a web service using nested complex types
Hello,
I need to generate a web service that uses nested complex types with built in types on the bottom layer. I hve posted an attempt at a WSDL. Please give advice on if I am doing it correctly.
I have the suspicion that I should nest the complex types into the final complex type VendorStockingInterface. Please confirm.
<?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/2002/04/wsdl/jms/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
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>
<s:schema targetNamespace="http://www.openuri.org/"
xmlns:s="http://www.w3.org/2001/XMLSchema">
<s:element name="RegisterServiceRequest">
<s:complexType>
<s:sequence>
<s:element name="DeviceCapabilities">
<s:complexType>
<s:sequence>
<s:element name="OSName" type="s:string" nillable="true"/>
<s:element name="OSVersion" type="s:string" nillable="true"/>
<s:element name="BRType" type="s:string" nillable="true"/>
<s:element name="DisplayColors" type="s:string" nillable="true"/>
<s:element name="DisplayTechnology" type="s:string" nillable="true"/>
<s:element name="NetworkAccess" type="s:boolean" nillable="true"/>
<s:element name="DownloadMethod" type="s:string" nillable="true"/>
<s:element name="DownloadVersion" type="s:string" nillable="true"/>
<s:element name="Protocols" type="s:string" nillable="true"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="LicenseType">
<s:complexType>
<s:sequence>
<s:element name="Licences" type="s:string" nillable="false"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="PriceValue">
<s:complexType>
<s:sequence>
<s:element name="Value" type="s:float" nillable="false"/>
<s:element name="CurrencyType" type="s:string" nillable="false"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="RevenueModelType">
<s:complexType>
<s:sequence>
<s:element name="VSRP" type="RegisterServiceRequest:PriceValue" nillable="true"/>
<s:element name="WholesalePrice" type="RegisterServiceRequest:PriceValue" nillable="true"/>
<s:element name="VendorSplitPercentage" type="s:float" nillable="true"/>
<s:element name="VendorPurchasePrice" type="RegisterServiceRequest:PriceValue" nillable="true"/>
<s:element name="License" type="RegisterServiceRequest:LicenseType" nillable="false"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="VendorItemIdentifierType">
<s:complexType>
<s:sequence>
<s:element name="VendorProductDisplay" type="s:string" nillable="false"/>
<s:element name="VendorProductVersion" type="s:string" nillable="false"/>
<s:element name="VendorProductCode" type="s:string" nillable="false"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="VendorBriefType">
<s:complexType>
<s:sequence>
<s:element name="VendorID" type="s:string" nillable="false"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="VendorItemBriefType">
<s:complexType>
<s:sequence>
<s:element name="VendorProductID" type="RegisterServiceRequest:VendorItemIdentifierType" nillable="false"/>
<s:element name="VendorID" type="RegisterServiceRequest:VendorBriefType" nillable="false"/>
<s:element name="VendorDescription" type="s:string" nillable="true"/>
<s:element name="VendorPricing" type="RegisterServiceRequest:RevenueModelType" nillable="false"/>
<s:element name="DownloadURL" type="s:string" nillable="true"/>
<s:element name="ShortCode" type="s:string" nillable="true"/>
<s:element name="ApplicationCode" type="s:string" nillable="true"/>
<s:element name="DRMMethod" type="s:string" nillable="true"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ContentType">
<s:complexType>
<s:sequence>
<s:element name="Categorization" type="s:string" nillable="false"/>
<s:element name="MIMEType" type="s:string" nillable="true"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="VendorStockingInterface">
<s:complexType>
<s:sequence>
<s:element name="VendorItemInfo" type="RegisterServiceRequest:VendorItemBriefType" nillable="false"/>
<s:element name="ProductType" type="RegisterServiceRequest:ContentType" nillable="false"/>
<s:element name="DeviceRequirements" type="RegisterServiceRequest:DeviceCapabilitiesType" nillable="true"/>
<s:element name="VendorPricing" type="RegisterServiceRequest:RevenueModelType" nillable="false"/>
<s:element name="ProgramMemory" type="s:int" nillable="true"/>
<s:element name="DataMemory" type="s:int" nillable="true"/>
<s:element name="Author" type="s:string" nillable="true"/>
<s:element name="Language" type="s:string" nillable="true"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="RegisterServiceResponse">
<s:complexType>
<s:sequence>
<s:element name="Message" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</types>
<message name="RegisterServiceSoapIn">
<part name="parameters" element="s0:RegisterServiceRequest"/>
</message>
<message name="RegisterServiceSoapOut">
<part name="parameters" element="s0:RegisterServiceResponse"/>
</message>
<portType name="RegisterServiceSoap">
<operation name="RegisterService">
<input message="s0:RegisterServiceSoapIn"/>
<output message="s0:RegisterServiceSoapOut"/>
</operation>
</portType>
<binding name="RegisterServiceSoap" type="s0:RegisterServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="RegisterService">
<soap:operation soapAction="http://www.openuri.org/RegisterService" style="document"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="RegisterService">
<port name="RegisterServiceSoap" binding="s0:RegisterServiceSoap">
<soap:address location="http://localhost:7001/RegisterService.jws"/>
</port>
</service>
</definitions>
I'd like the the consumer of the web service to send it a document with the fields formatted to the VendorInterface complextype which contains the other complextypes. In return the consumer will get another document with some acknowledgement messages.
To make this happen I'd like to generate the web service, creating the complex type classes and XMLBeans. I'd like advice on the steps to take once I get a good WSDL.
There is also the option to go from the other direction. Is it better to attempt to create a schema XSD document instead and use that to work towards the web service and WSDL? If so, could someone give an example of how to format an XSD using my example needs.I think I have got it all in place, though I have not tested it as of yet. For others who are looking at this, here is my XSD file from which all my complextypes were generated and lastly here is the actual web service file.
?xml version="1.0"?>
<xs:schema targetNamespace="http://openuri.org/RegisterService"
xmlns:rs="http://openuri.org/RegisterService"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
xmlns:tns="http://temp.openuri.org/VerizonBOBO/RegisterServiceRequestDocument.xsd">
<xs:element name="RegisterServiceRequest" type="rs:VendorStockingInterface"/>
<xs:complexType name="DeviceCapabilitiesType">
<xs:sequence>
<xs:element name="OSName" type="xs:string" nillable="true"/>
<xs:element name="OSVersion" type="xs:string" nillable="true"/>
<xs:element name="BRType" type="xs:string" nillable="true"/>
<xs:element name="DisplayColors" type="xs:string" nillable="true"/>
<xs:element name="DisplayTechnology" type="xs:string" nillable="true"/>
<xs:element name="NetworkAccess" type="xs:boolean" nillable="true"/>
<xs:element name="DownloadMethod" type="xs:string" nillable="true"/>
<xs:element name="DownloadVersion" type="xs:string" nillable="true"/>
<xs:element name="Protocols" type="xs:string" nillable="true"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LicenseType">
<xs:sequence>
<xs:element name="Licences" type="xs:string" nillable="false"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PriceValue">
<xs:sequence>
<xs:element name="Value" type="xs:float" nillable="false"/>
<xs:element name="CurrencyType" type="xs:string" nillable="false"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RevenueModelType">
<xs:sequence>
<xs:element name="VSRP" type="rs:PriceValue" nillable="true"/>
<xs:element name="WholesalePrice" type="rs:PriceValue" nillable="true"/>
<xs:element name="VendorSplitPercentage" type="xs:float" nillable="true"/>
<xs:element name="VendorPurchasePrice" type="rs:PriceValue" nillable="true"/>
<xs:element name="License" type="rs:LicenseType" nillable="false"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="VendorItemIdentifierType">
<xs:sequence>
<xs:element name="VendorProductDisplay" type="xs:string" nillable="false"/>
<xs:element name="VendorProductVersion" type="xs:string" nillable="false"/>
<xs:element name="VendorProductCode" type="xs:string" nillable="false"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="VendorBriefType">
<xs:sequence>
<xs:element name="VendorID" type="xs:string" nillable="false"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="VendorItemBriefType">
<xs:sequence>
<xs:element name="VendorProductID" type="rs:VendorItemIdentifierType" nillable="false"/>
<xs:element name="VendorID" type="rs:VendorBriefType" nillable="false"/>
<xs:element name="VendorDescription" type="xs:string" nillable="true"/>
<xs:element name="VendorPricing" type="rs:RevenueModelType" nillable="false"/>
<xs:element name="DownloadURL" type="xs:string" nillable="true"/>
<xs:element name="ShortCode" type="xs:string" nillable="true"/>
<xs:element name="ApplicationCode" type="xs:string" nillable="true"/>
<xs:element name="DRMMethod" type="xs:string" nillable="true"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ContentType">
<xs:sequence>
<xs:element name="Categorization" type="xs:string"/>
<xs:element name="MIMEType" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="VendorStockingInterface">
<xs:sequence>
<xs:element name="VendorItemInfo" type="rs:VendorItemBriefType"/>
<xs:element name="ProductType" type="rs:ContentType"/>
<xs:element name="DeviceRequirements" type="rs:DeviceCapabilitiesType"/>
<xs:element name="VendorPricing" type="rs:RevenueModelType"/>
<xs:element name="ProgramMemory" type="xs:int"/>
<xs:element name="DataMemory" type="xs:int"/>
<xs:element name="Author" type="xs:string"/>
<xs:element name="Language" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RegisterServiceResponse">
<xs:sequence>
<xs:element name="Message" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
The Web Service File:
import org.openuri.registerService.RegisterServiceResponse;
import org.openuri.registerService.RegisterServiceRequestDocument;
import com.verizon.hp.registerservice.*;
public class RegisterService implements com.bea.jws.WebService
static final long serialVersionUID = 1L;
* @common:operation
* @jws:protocol form-post="false" form-get="false"
public org.openuri.registerService.RegisterServiceResponse RegisterService(org.openuri.registerService.RegisterServiceRequestDocument RegisterServiceDoc)
VendorStockingInterface vsInterface = (VendorStockingInterface)RegisterServiceDoc.getRegisterServiceRequest();
System.out.println(vsInterface.toString());
com.verizon.hp.registerservice.RegisterServiceResponse serviceResponse = new com.verizon.hp.registerservice.RegisterServiceResponse();
serviceResponse.setMessage("Register New Service Message has been received successfully");
org.openuri.registerService.RegisterServiceResponse response = (org.openuri.registerService.RegisterServiceResponse)serviceResponse;
return response;
} -
Why Web services are used to send data not HTTP in Web dynpro for Java?
Is Web Dynpro for Java supports Web service , RFC as communication to other systems why http cannot be used in Wweb dynpro for java.........
Thanks and Regards,
CSPHi Pradeep,
Yes, Web Dynpro java supports web service, you can expose your web service as RFC Model to
communicate with others system. As per as HTTP is concern we don't have any
supportive method in web Dynpro. Insted of HTTP we use context in web dynpro to communicate.
Thanks
Anup -
Errors installing web service to use dreamweaver extension
Portal Version: 10g
OS/Vers. Where Portal is Installed:: Linux AS 2.1
Errors installing web service to use dreamweaver extension
Recently I download the dreamweaver extension for portal, but when I try to install it several errors are raised... in the installation guide the next message appear:
This installation for this feature is an easy 3 step procedure.
1. Installing the Portal web service
2. Configuring the web service to work with your portal (one time administrative process)
3. Installing the PortalTemplates extension for Dreamweaver MX
well but when I try to run the 1 step everything goes wrong...
in the guide say:
# Transfer this file to the OC4J_HOME/j2ee/home directory of the OC4J
(please make sure that the OC4J is up and running)
# Use the following command to install the web service
java -jar admin.jar ormi://<oc4j_host>:<oc4j_ormi_port>
<username> <password>
-deploy -file portalTemplate.ear -deploymentName portalTemplate
here it's where I have some questions,
1. the ormi referers to the rmi ok (I think that), well then I go tho the iasconsole and search for the ports and is show:
home RMI 3202
OC4J_Portal RMI 3203
OC4J_BI_Forms RMI 3204
then I use the home-> port 3202
java -jar admin.jar ormi://myhost.midtierinstall.com:3202
ias_admin ias_midtier_admin_password -deploy -file portalTemplate.ear -deploymentName portalTemplate
but the following messages appear :
Error: Unable to find java:ServerAdministrator : lookup error:javax.naming.AuthenticationException invalid username/passwod for default (ias_admin).... and the error continue... but the problem is that the password works when I use the enterprise manager in that midtier console...
I want to know if I'm doing something wrong or how I should use this command to install that web serviceThe ormi is the rmi port in the OC4J. This coold be found in oc4j_home/j2ee/home/config/rmi.xml file. The default port is 23791.
Hope this helps,
Ramya -
How to expose a web service to the outside world?
Hello,
i have created a Web service from a Session bean and successfully published it on one of my UDDI registries using the Admin tool.
At this point, what do I need to do further in order to expose this Web service not just in our LAN but to the outside world?
RoyOffcourse it should be published at UDDI.
Four play key roles in Web services: Universal Description, Discovery and Integration (UDDI), Web Services Description Language (WSDL), Web Services Inspection Language (WSIL), SOAP, and Web Services Interoperability (WS-I).
The UDDI specification defines open, platform-independent standards that enable businesses to share information in a global business registry, discover services on the registry, and define how they interact over the Internet.
See this link too:
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.jst.ws.consumption.ui.doc.user/concepts/cwsdlud.html
Regards, Suresh KB -
Issue with creating Web Service Client using Oracle JDeveloper
Hi All,
I am trying to create a Web Service Client using Oracle JDeveloper. I set the Project compiler property to JRE 1.4
When I run the web service client, it throws me bunch of errors saying:
'Error(32,2): annotations are not supported in -source 1.4'
I am wondering why JDeveloper is using annotations even after I set the compiler property to 1.4
I am following this link to create the webservice client:
http://www.oracle.com/technetwork/developer-tools/forms/webservices-forms-11g-094111.html
Any help in this regard would be greatly appreciated.
Thanks,
Scott.Dear Shay,
Thanks for your prompt response.
You are right. JDeveloper 11g uses JDK 6 style annotations for the clients it creates. But you can change the JRE Version used at compile time by following these steps:
1. In the Applications Navigator, right-click the Project Nanem node and select Project Properties... from the context menu.
2. Select the Compiler node and check the Source Files and Generated Class Files dropdown lists. You may change these versions depending on the version of the JRE you are using with Forms to ensure that the compiled
classes from JDeveloper can be read by the JRE used by Form.
So I selected JDK version 1.4 there.
Sorry that I did not mention that we are using Oracle Forms 10g. That is the reason I selected JDK 1.4
Thank you.
Scott. -
Create Web Service System using WSDL URL
Hi,
Please help me create a Web Service System.
Following is the test result when I perform Connection Test after creating a system
Test Connection with Connector
Test Details:
The test consists of the following steps:
1. Retrieve the default alias of the system
2. Check the connection to the backend application using the connector defined in this system object
Results
Retrieval of default alias successful
Connection failed. Make sure that Single Sign-On is configured correctly
Thanks,
AtulLet me reiterate my problem.
I created the System as following
Creating System's Object:
1) Go to System Administration
2) Go to System Configuration
3) Go to Portal Content on Object Based Navigation Area (Right Side Panel)
Note: For avoiding confusion it is recommended to create a folder in which we are creating System Object.
4) Right Click on Portal Content, select New -> System (from Template)
5) This action will display a new view on right side, now choose Web Service System using WSDL URL radio button from the existing templates. Click Next
6) Give the System Name i.e. System_WS and System Id (which are mandatory fields) incase you want to give any brief notes about the system then give it in Description field. Click Finish.
8) Choose Open the object for editing Click OK.
9) Now to create a Web Service System, we need WSDL URL.
10) There are lots of freely available WSDL files on internet, search for any such WSDL file.
11) In the Properties area of system give the appropriate WSDL URL
12) Choose System alias, from display menu and give alias as System_WS.
This alias name will be the name of Web Service System.
I used the following url
http://soap.amazon.com/schemas2/AmazonWebServices.wsdl
After the system is created,
1) Right click on the created system> open > object
2) Drop down for Display options is changed to Connection Tests from what it shows as object
3) Check the check box for the test name Connection Test for Connectors
4) Result shows that the connection failed. The error message was posted in my first question.
Thanks,
Atul -
Help: Creating web service proxy using JAXB generated domains
Hi,
I'm currently doing some investigation considering the use of web services (BPEL) as a complete application backend.
The application should contain a pojo facade which communicates with some web service proxies. By making a datacontrol
of the pojo facade, I'm able to expose methods to the client layer.
I generated my domain objects by using the JAXB Compilation option in JDeveloper. By using that, a java class can be generated
based on an XSD. Disadvantage of this use, seems to be the fact that the ObjectFactory class, generated by JAXB, is overwritten
each time I create java classes from an XSD.
Q1: Is there a solution to prevent the ObjectFactory class to be overwritten? I also could decide not to use it.
After the domain objects are created, I want to call the actual webservice and receive the response by using the JAXB marshaller
and unmarshaller. Problem here is:
Q2: How do I (manually?) create a proxy which calls the web service, by using the domain objects generated by JAXB?
Q3: An important requirement is that it needs to be simple to switch from several environments (eg from development to test). How
can I fulfill this requirement in a nice, solid solution?
Any tips working with web services as the backend layer are welcome!
JDeveloper 10.1.3.4
ADF Faces/JSF
BPEL
Thanks,
Koen Verhulstrepost.
-
Problem creating web service client using WSM Policies
Hello everyone,
I'm trying to make a simple java client to a Web Service secured using a WSM 11gR1 policy (from Soa Suite 11.1.1.2.0). The policy on the server side is oracle/wss11_x509_token_with_message_protection_service_policy which I attached via the Weblogic Admin Console. To implement the client I'm trying to follow the instructions from this documentation: http://download.oracle.com/docs/cd/E15523_01/web.1111/e13713/owsm_appendix.htm#WSSOV386 section "Policy Configuration Overrides for the Web Service Client" and also I'm using OEPE 11.1.1.3.0 (Eclipse 3.5.0) to develop the client. The only weblogic jar I've added to the build path is the weblogic.jar . Unfortunately, the oracle.wsm.security.util.SecurityConstants.ClientConstants interface (used in the example A-6) is not included in this jar and I have no idea what other libraries should I include in order to follow the example. I tried manualy adding other jars but without success. In fact I found one jar which includes this interface, the wsm-secpol.jar but it does not have the properties described in the documentation, so I guess it's not the right jar, and also I don't think this is the right procedure since there might be another dependent jars. So I would like to know what libraries exactly I should add to the build path (or some other procedure if you noticed I'm doing anything wrong)
Thank you !Hi
I am having the same problem almost where i wrote a client to comsume a JWS server in https. Where the server is setup to require a certificate to connect to.
My code:
public static void main(String[] args) {
try {
DataBaseSyncServerImpl port = new DataBaseSyncServerImplService().getDataBaseSyncServerImplPort();
int number1 = 20;
int number2 = 10;
System.out.printf("Invoking divide method(%d, %d)\n", number1, number2);
double result = port.divide(number1, number2);
System.out.printf("The result of dividing %d and %d is %f.\n\n", number1, number2, result);
when run this code throw
run:
[java] Invoking divide method(20, 10)
[java] Exception in thread "main" javax.xml.ws.WebServiceException: HTTP transport error: javax.net.ssl.SSLHandshak
eException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCert
PathBuilderException: unable to find valid certification path to requested target
Does any one know how can I solve this problem or how can I make the client be able to use self signed certificates. Any help is greatly apprecited. Thanks -
I am trying to access a SOAP Web Service. I'm using cfinvoke
but the service doesn't provide WSDL.
Is there any way in ColdFusion to access a web service
without WSDL ?
Many thanks,
Simonquote:
Originally posted by:
logic8
Whether I type
http://example.com/core.php
or
http://example.com/core.php?wsdl
- I get the following:
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/">
−
<SOAP-ENV:Body>
−
<SOAP-ENV:Fault>
<faultcode
xsi:type="xsd:string">Client</faultcode>
<faultactor xsi:type="xsd:string"/>
<faultstring xsi:type="xsd:string">method '' not
defined in service</faultstring>
<detail xsi:type="xsd:string"/>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
If I try using cfinvoke I get a "Unable to read WSDL from
URL" 500 internal server error.
BTW this is my first day learn CF ;)
Thanks
Never too early to start good habits, such as reading your
error messages. What do you think this means?
<faultstring xsi:type="xsd:string">method '' not
defined in service</faultstring> -
What are the steps to Migrate a Web Service from Tomcat to JBoss
Hi,
I am totally new to JBoss and need some help. I mostly worked on BEA and Oracle. I have a web service deployed on Tomcat that needs to be now migrated to JBoss. What are the steps in moving a web service from Tomcat to JBoss.
Is there some step by step tutorial on developing and deploying a web service on JBoss along with sample build script.
Any help is really appreciated.
ThanksR u using axis. If you want to stick with axis and don't want to use JBossWS there is nothing else you need to do. Move all the axis to Jboss. If you plan to reimplement all ur services in JBossWS here it is:
http://jbws.dyndns.org/mediawiki/index.php?title=Quick_Start
http://jbws.dyndns.org/mediawiki/index.php?title=User_Guide
Let me know if you need anything else.
Maybe you are looking for
-
is the a way to restore my iPhone 5 when it is no longer activated since i erased all content and data it keeps giving me this window that says my simcard is not recognizable does anyone know what to do?
-
Date bug in import process: 2 sets of dates from same-day shots
I took some photos the other day using my Canon 400D. Some were taken around 1:00 pm, and another series of them were taken around 4:00 pm. I then went to import them into Lightroom from a CompactFlash card, using a cardreader, by using the organize
-
Hyper-V cluster iSCSI not communicating on one host - Catch 22
I'm in a catch-22, I have a 3 host Hyper-V 2012 cluster connected to a Dell Compellent SAN and Force 10 switches for iSCSI. Host3 simply stopped communicating via iSCSI, I can't ping Host 1 or 2 from Host 3 and vice versa. I could take Host3 down fo
-
How to call custom BSP application (copied from standard)
Hi, I came across 1 interesting link in SDN. [Enhancement procedure of BSP application HRRCF_RECRUITER in eRecruitment] My requirement is also similar. I need to copy the HRRCF_TRM_SRCH application. I know how to make the changes for the logic (like
-
Play book bluetooth unable to receive files
I have just started using my playbook but i am having trouble sending files e.g music, pics and videos to my playbook via bluetooth. i have successfully paired my devices to my playbook but when i try to send via bluetooth i get the message "failed t