SwA with a doc/lit web service? 8.1sp3
For WL 8.1sp3, is it possible to do SwA using a doc/lit style web service? I'm not even sure if this makes sense, and it's not mentioned on any sites I've seen.
I'm trying to experiment how you can send binary data over XML with BEA WL 8.1sp3. It only supports SwA, which I believe can be used to send binary data at its raw size. However, I wanted to have a document-style web service.
The only examples for SwA use rpc style.
If you want to send binary data (i.e. an image, a PDF file, a Word document, etc.) as opposed to an XML document, then you in essence want an RPC-style web service that has an operation that takes an javax.activation.DataHandler. You can build this web service using either the <servicegen> Ant task, or the WLW IDE (a .JWS).
Here's a link to the e-docs:
http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/getstarted/conUsingSOAPAttachments.html
The one thing wrong (or missing) with that information, is that it doesn't tell you that you have to set the soap-style needs to be set to rpc. The default is document, which won't produce the the correct client proxy jar. Actually, you won't be able to produce the client proxy jar unless you set soap-style to rpc :-)
Regards,
Mike Wooten
Similar Messages
-
Securing single point of entry doc-lit web services
I am designing doc-lit web services with a single point of entry, but the doc can contain requests of various types, with varying levels of authorization on the 'methods' being called by the web service as a result of the passed requests. I'm looking for a standards-compliant means of accomplishing this, or at least some method that will not be insanely difficult to move to a standards-based security implementation when they become available. I do not want to use SSL/TLS, but do want to stick to standards including WS-Security, XML-Encryption and XML-DSig. I would also like to use OID/SSO with certificate-based authentication.
What are my options as far as existing tools, techniques, etc for this in a Java/Oracle environment? Is there anything in Oracle BPEL that could help me in this quest?
Appreciate any advice, pointers, shared experiences, etc on this - I'm a little lost in the trees right now!
Thanks Much,
Jim StollEric - appreciate the tip. The link to the JDev files for the OBE article doesn't work though (ie, in the article, there is a link to download the source for the project) - is there an alternate way that I could get hold of that code? Even something as simple as someone emailing it to me would work - I desperately need to move forward on this stuff. (There's another sample at http://www.oracle.com/technology/products/jdev/101/howtos/securews/index.html, but that one throws exceptions and I can't seem to get any help on it via the forum or Oracle Support, either...)
Thanks for your assistance!
Jim -
Returning data with a doc style web service
How does one return information using a "Document" style Web Service? WLS 8.1 restricts
you to a single "in" parameter. Do I return information by using the "return"
value from the Web Service (assuming it's synchronous)? If so, what are the restrictions
on the return value. I've read the WLS 8.1 Programming Web Services document but
it's pretty lite in the area of Document style Web Services.
Thanks.WLS 8.1 supports two document styles:
#1 document literal
#2 document wrapped literal
In the case of #1 a web service method can only
take zero or one argument. There can be a return
type (or void). The (single) argument or return type
could be any supported type, or user defined complex
types (java beans). In #1 the dispatch is done based
on the incoming document and not based on the name
of the method. You can find an example for this at:
http://manojc.com/?sample13
In the case of #2 a web service method can have
any number of arguments. The WS container will
wrap the method in to a complexType. Here,
method name will be the name of the complexType
and arguments will be added as elements of the
complexType. In this case dispatch is done
based on the method name. An example here:
http://manojc.com/?sample14
Regards,
-manoj
"Jack Ottofaro" <[email protected]> wrote in message
news:3ea55b39$[email protected]..
>
How does one return information using a "Document" style Web Service? WLS8.1 restricts
you to a single "in" parameter. Do I return information by using the"return"
value from the Web Service (assuming it's synchronous)? If so, what arethe restrictions
on the return value. I've read the WLS 8.1 Programming Web Servicesdocument but
it's pretty lite in the area of Document style Web Services.
Thanks. -
Need help with DOC type web service
hi,
I am trying to write a simple message style ( doc type ) web service but no success so far. I have tried to search for examples but no use. I already implemented some simple RPC style web services like calculator etc and able to use them. I am more interested in the DOC type ( which sends SOAP message and receives SOAP message back). Can Anybody give me an example for implementing this type of service ( very-simple say HellowWorld ) or point me to some website . I am not able to generate the response envelope. I can write the client program which will send a SOAP Envelope to this services with one parameter NAME and the services should return Hello Name but in a SOAP envelope form. I can create a SOAP message in this Client using SOAPConnection and MessageFactory etc. Your help will be really appreciated. There is very little stuff about webservices on the internet as well on this forum.
Thanks
VinodHello kwilding2,
Thanks for the quick response and pointing to some useful websites. I downloaded the code from web service essentials BUT all the examples are using SOAP RPC calls. They create a call object and call one of the service methods and a response is returned. I am little confused about this stuff. I am looking for something which returns the response in a SOAP envelope for which i think i need to use JAXM API which I already have downloaded. I have created a client which composes a SOAP envelope using SOAPConnection and other MessageFactory classes etc and can send this SOAP envelope to a web service. In return I want the web service to give the SOAP envelope.
I have gone thru xmethods.net and picked the following stock quote request and response:
Sample Request envelope:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getQuote xmlns:ns1="urn:xmethods-delayed-quotes" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<symbol xsi:type="xsd:string">IBM</symbol>
</ns1:getQuote>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sample Response Envelope:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getQuoteResponse xmlns:ns1="urn:xmethods-delayed-quotes" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:float">133.625</return>
</ns1:getQuoteResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I also want the things in this order. This webservice at xmethods just returns the price for a stock, so how they say it returns this Response Envelope. Is this Envelope something implied. I am getting more confused.
any help will be appreciated.
Thanks
Vinod -
Doc for Web services SDK (not using Consumer APIs)?
I would like to interact with the BO XIr2 Web Services SDK, but I can't find much documentation about them (aside from what the WSDLs cough up). I don't necessarily want to use the Consumer APIs for the web services. So I'm really looking for examples or even just a sort of "object model" for the web services that describe what the different calls in the WSDL do and in what order you need to call them to get things done like refreshing a report and getting the results as an HTML stream.
Does anyone have any examples/doc?
Thanks.Hi,
Let me ponder Ted's statement above. Indeed we do not test our web services sdk outside of our .NET and Java consumers but we do support using directly WSDL as long as the SOAP engine you are using is WS-Interoperable Basic Profile 1.O compliant (as we are compliant) or if issue can be reproduced using our java or .net consumers.
Below a couple of links in our web service documentation that mention WS-I BP and WSDL:
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/WS_SDK/wssdk_consumer/default
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/WS_SDK/wssdk_consumer/doc/wssdk_dg/InstallingDevEnvironment11.html
Let me also mention new SP2 release web services: BI Process Web Service and Query as a Web Service, these do not include consumers. -
Can a doc-style Web Service invoke an RPC-Style Web Service? I know that we cannot
mix RPC with Doc-style in the same Service, but I was wondering if RPC and Doc-style
can call each other.
Thanks,
JohnHi John,
Yes this is certainly possible. The role of client, server and service
gets blurred when dealing with multiple web services. For an example,
you can take a look at the work done by WS-I for the sample application
[1], where multiple types of web services communicate with each other.
Regards,
Bruce
[1]
http://www.ws-i.org/SampleApplications/SupplyChainManagement/2003-12/SCMArchitecture1.01.pdf
John Meiser wrote:
>
Can a doc-style Web Service invoke an RPC-Style Web Service? I know that we cannot
mix RPC with Doc-style in the same Service, but I was wondering if RPC and Doc-style
can call each other.
Thanks,
John -
Help with Radio Group and Web Service
Hi,
I created a Radio Group with Dynamic Entry List (Web Service). It seems my list keeps coming back empty. I am on SP10.
When I deploy I get warnings that "Entry List is missing output fields mapping. I think this is a warning only because I don't have my form connected to any other components. I just want to see the radio group populated. I don't think this is the cause.
I see references out there to this "Dynamic List" not working until SP12? Can anyone add some insight to what is wrong? unsupported until later?
Thanks!I created a new model and the new model works fine. Something must be cached.
-
Error communicating with the Cluster Manage Web Service
Hi,
i connected oracle database with the Endeca Studio but while uploading Departments dataset i m getting this error
"Error communicating with the Cluster Manage Web Service" so plz can anyone explain me wat is this error about.
thanks in advanceI actually ran into this myself- as Pat notes, it's hard to say without seeing log files, but I think that perhaps the default domain profile that the Endeca Server uses for domains created using Provisioning services has not been created. First see what domain profiles exist. Navigate to wherever endeca-cmd lives (e.g., user_projects/domains/endeca_server_domain/EndecaServer/bin), and use the list-dd-profile command:
-bash-3.2$ ./endeca-cmd.sh list-dd-profiles
The profiles that exist will be returned in your terminal window:
prov_dd_profile
default
If you only see 'default', then you will need to create 'prov_dd_profile'
./endeca-cmd.sh put-dd-profile prov_dd_profile
Then try uploading your file again in Studio.
Cheers,
Andrew -
How to generate doc/lit/wrapped services from existing wsdl?
Hello,
I am using workshop 10.1 to generate webservices from existing wsdl files from workshop 8.1. The existings webservices are based on an xmlbean utility project.
When I generate the webservice from the existing wsdl file it generates automatically services with doc/lit/bare operations. I found in the known issues that this combination is not supported in combination with xmlbeans.
See: CR283457
XBeans are not supported as parameters or return type for doc/lit/bare operations.
Use of Xbeans as a parameter or return type with doc/lit/bare bindings is not supported in operations or callbacks and will result in a failure during deployment.
Platform: All
Workaround: Use doc/lit/wrapped for services that use XBeans as parameters or return types.
The workaround state to use doc/lit/wrapped for services. My questions is how to do that since workshop has all control over the generation of the webservices? ?:|
Thanks in advance,
Martijn Baels
Software Architect
www.leanapps.comHi Martijn
If you do generate web service from the wsdl on a 9.2 project, it always uses jax-rpc types and there's no xmlbeans involved.
If the wsdl is in the schemas folder and the xmlbeans builder is on, then you also have xmlbeans types created by the builder they aren't being used by the web service. You will still have problems, because some of the xmlbeans types may conflict with the jax-rpc types.
so when we generate webservice from a wsdl it will never use xmlbeans type, even if the xml builder is on, because WLS doesn't support start from wsdl with xmlbeans types.
Can you please attach the wsdl and the steps so I can replicate and see the issue?
Thanks
Vimala -
Problem running report with BI Publisher and Web Service
Hello,
I actually try to run a Bi Publisher report via the Web Service.
I use the following documents:
- http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/bip_webservice_101331.htm
- "How to integrate Oracle BI Publisher via Web Services in Oracke Forms"
Everything works fine. But when I try to copy it on local computer the file is 0 length. I use the "getReportBytes" method.
Here is the code I tried with:
String userName = “Administrator”;
String passWord = “Administrator”;
System.out.println(”calling ” + myPort.getEndpoint());
System.out.println(myPort.validateLogin(userName,passWord));
ReportRequest repReq = new ReportRequest();
ReportResponse repRes = new ReportResponse();
repReq.setAttributeFormat(”pdf”);
repReq.setAttributeLocale(”en-US”);
repReq.setAttributeTemplate(”World Sales”);
repReq.setReportAbsolutePath(”/Sales Manager/World Sales/World Sales.xdo”);
repRes = myPort.runReport(repReq,userName,passWord);
System.out.println(repRes.getReportContentType());
byte[] binaryBytes = repRes.getReportBytes();
OutputStream out = new FileOutputStream(”D:
out.pdf”);
out.write(binaryBytes);
out.close();
System.out.println(”Success for Run Report”);
Thanks in advance.Hi,
I assume that you use 10.1.3.4. If not, my hint is not relevant for you ....
There's a new parameter in the web service API to set the Chunk-Size. Unfortunaltely is the default value not so, that the behaviour is like in older releases (no chunk-size ... the whole document at once). If you set the chunk size to -1, you should get your document. So try to add
repRequest.setSizeOfDataChunkDownload(-1);
regards
Rainer -
Offline Integration of Adobe Forms with CRM System using Web Service
Hi Experts,
I have a business requirement in which the end user us given an Application Form.
The user can save the form locally and fill the data.
Now the requirement is that when the end user clicks on Submit Button on the form, a web service is called and the entire data in the form is sent to CRM System.
I want to know is it possible to capture the entire data filled in the form in a web service???
Also the other major requirement is that i need to send the application form also to the CRM system.
I need to store the form as attachement for a Business Partner Record.
Is it possible to capture the data in the adobe form and still attach the form as attachement in an Offline Scenario????
Is it possible that a Web Service can be called on click of button in the form and still be able to attach the form itself as attachment???
Thanks and Regards
Gaurav Kumar RaghavI have collected some links for WebServices for you:
https://cw.sdn.sap.com/cw/servlet/JiveServlet/download/38-51084/saptech_webservice.pdf
Re: Adobe forms with Web Service - nothing happens when clicking button.
/people/rudy.clement2/blog/2010/03/10/how-to-use-the-postexecute-event-in-sap-interactive-forms-to-retrieve-a-table-from-a-webservice
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/148ec26e-0c01-0010-e488-decaafae3b26
Usage of webservice in offline adobe scenarios
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0d0a250-ccd1-2c10-9e9f-b9d5cf259a6d?quicklink=index&overridelayout=true
cheers Otto -
Doc/Literal Web Services in OmniPortlet
Hi I was wondering if OmniPortlet has a problem calling Document/Literal type of Web Services? Because I tried calling 2 such WS, one of which is .NET, the other is developed in JDeveloper.
In both cases, OminPortlet sends the encodingStyle attribute in its SOAP body, which shouldn't occur for doc/lit types right? The .NET WS can accept the request though, while the JDev one can't.This is the WSDL for the .NET service:
<wsdl:definitions targetNamespace="http://tempuri.org/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
<s:element name="HelloWorld">
<s:complexType/>
</s:element>
<s:element name="HelloWorldResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name="HelloWorldSoapIn">
<wsdl:part name="parameters" element="tns:HelloWorld"/>
</wsdl:message>
<wsdl:message name="HelloWorldSoapOut">
<wsdl:part name="parameters" element="tns:HelloWorldResponse"/>
</wsdl:message>
<wsdl:portType name="ServiceSoap">
<wsdl:operation name="HelloWorld">
<wsdl:input message="tns:HelloWorldSoapIn"/>
<wsdl:output message="tns:HelloWorldSoapOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="HelloWorld">
<soap:operation soapAction="http://tempuri.org/HelloWorld" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="HelloWorld">
<soap12:operation soapAction="http://tempuri.org/HelloWorld" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Service">
<wsdl:port name="ServiceSoap" binding="tns:ServiceSoap">
<soap:address location="http://137.132.1.150:83/service.asmx"/>
</wsdl:port>
<wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12">
<soap12:address location="http://137.132.1.150:83/service.asmx"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions> -
Starting out with Java client for Web Services
Hi,
I'm new to Web Services (but not Java in general). Just looking for some pointers to get me started in the right direction.
My pressing need is to develop a Java client for a set of Web Services described through a WSDL.
I've found the "Chapter 12: Building Web Services With JAX-RPC" section of the Web Services Tutorial. Could someone just confirm that this is the right tutorial for me to read for my puropse.
Also I was wondering about available tools for this purpose.
I was expecting that there would be a tool that could read a WSDL and generate client side stubs for it automatically. (Like how you can take a Remote interface and rmic it in RMI). Is there such a thing? Is it possible?
Preferably an open source (free) tool. I use the Netbeans IDE so if anyone knows of anything that integrates with that, all the better. I had a look at their site but couldn't see anything.
Thanks in advance for any tips anyone can provide.Hi,
I'm new to Web Services (but not Java in general).
Just looking for some pointers to get me started in
the right direction.
My pressing need is to develop a Java client for a set
of Web Services described through a WSDL.
I've found the "Chapter 12: Building Web Services
With JAX-RPC" section of the Web Services Tutorial.
Could someone just confirm that this is the right
tutorial for me to read for my puropse.Yes, that's right. It manages to say very little in very many pages.
Also I was wondering about available tools for this
purpose.
I was expecting that there would be a tool that could
read a WSDL and generate client side stubs for it
automatically. (Like how you can take a Remote
interface and rmic it in RMI). Is there such a thing?
Is it possible?This is exactly what the wscompile tool (distributed with the JWS SDK 1.3) does as one of its options. See http://java.sun.com/webservices/docs/1.1/tutorial/doc/JAXRPC6.html for more info. -
Problem with java and flex web service
Hi,
I have a basic web service written in java using jax ws 2.1
ri. I need to call it from Flex using the WebService class
Annotations for the java web method :
@WebMethod
public void Login(
@WebParam(name="server") String serverURL,
@WebParam(name=AUTHENTICATE_HEADER,header=true,mode=WebParam.Mode.INOUTHolder<Authenticate Header>
authHeader)
When I try and call the service from Flex , it can't find the
login method and attempts to call it fail. If I set the web service
to RPC based using @SOAPBinding , the method is found but then
there are issues with the authentication header.
What do I need to do to get flex web services communicating
succesfully with java ?
Are there are any known compatibility issues ? Or guidelines
for going about this ?
Any help would be appreciatedwell Shay,
i've used JDev's tools to developer and to deploy the web service: the war and ear files are automatically generates you to the end of the process.
I have included all the files java and the compiled classes, but I do not have files jar.
But don't works: if i create only one java class with all code inside then it works fine!!
Daniele -
Problem with CLOB in PLSQL Web Service.
Hi-
I have Oracle Package that accepts CLOB as IN parameter and another CLOB as an OUT parameter. I went thru the tutorial in how to publish a database
PLSQL package as a web service with out any problem. I was able to publish and call successfully my PLSQL web service thru a browser and thru a simple C# application. It's been working fine until I receive an XML file which is bigger than 32766:
java.sql.SQLException: setString can only process strings of less than 32766 chararacters at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)]
JDeveloper version: JDeveloper 10g (10.1.2.2.0) Build 1929
Oracle Application Server 10g
I'm newbie in JDeveloper so any help is greatly appreciated.
Thanks!well Shay,
i've used JDev's tools to developer and to deploy the web service: the war and ear files are automatically generates you to the end of the process.
I have included all the files java and the compiled classes, but I do not have files jar.
But don't works: if i create only one java class with all code inside then it works fine!!
Daniele
Maybe you are looking for
-
PLZ Customization for Customer 300000 missing in table CIN customer master
PLZ ARGNT Customization for Customer 300000 missing in table CIN customer master Message no. 8I303 Diagnosis The customization details have not been maintained for this company Procedure Please use the localization IMG or Global settings to maintain
-
ITunes with digital media pro keyboard
Is there a way to assign the hotkeys on the Windows Media Pro keyboard? The play/pause doesn't work and next track skips 2 tracks, instead of going to the next track.
-
MacBook Pro 3,1 RAM question
I'd like to update the RAM in my MacBookPro3,1. Do I need to purchase a matching pair or can I purchase a 2GB and a 4GB? Also, where is a good place to order online for RAM for this MacBook Pro? Thanks so much, Shenley
-
Extra page printing on HP P4015x
On every printing job I get a page that shows my username and job name and number before my actual job prints. Any way I can disable this? Thanks.
-
I even got that message when I tried to post my question! It says that Firefox cannot verify a secure connection with mozilla, or whatever website I'm trying to visit, because the security certificate is not valid. It even gives the dates that the ce