Attachment in WLS 7 sp2 Web Service
Hi, I'm trying to send to a Web Service in WLS7 sp2 SOAP message with attachments. My problem: when I don't add any attachment to SOAP message all go OK, but when I add an attachment with the "href" attribute in an element of the message (I need do it because I use the MM7 protocol of 3GPP), WLS7 don´t accept my message and tell me: "The ID referenced by ..... is unknow". The Content-ID of attachment is equal to value of the href attribute.
Please, I need help with this!! If anyone knows any URL or sample code that can help me, please, reply to this post.
Thanks and sorry, my english is not very well.
Currently there is no option to turn off security check.
I think you can use a servlet filter mapped to the URL
of your service, instead of a proxy servlet?
Regards,
-manoj
http://manojc.com
"Toni Nykanen" <[email protected]> wrote in message
news:3ef1577b$[email protected]..
>
Hi!
We need to implement authentication using our own methods, and theauthentication
information is provided to the web service implementation in a basicauthentication
header. The problem is, that the servlet
weblogic.webservice.server.servlet.WebServiceServlet, which handles webservices
in
wls 7.0.sp2, always attempts to perform authentication, if the header ispresent.
Is there any way to circumvent this, because we want to implementauthentication
on our own?
I already know two workarounds:
The best would of course be to implement a custom security realm for ourown
authentication system. This is not an option, implementing an own security
realm is overkill for this specific web service.
The other way would be to route the requests by way of a custom servlet,which
would
remove the basic authentication header, and put the authentication info incustom
headers, such as x-auth: <user:password>, or smthng similar, and aftersuccessful
authentication, make a call to bea's servletweblogic.webservice.server.servlet.WebServiceServlet.
>
But still, I'd like to know if there is any way to tell bea's servlet toignore
the basic
authentication header?
Oh yeah, by the way, this is URGENT, as always. (really!! ;)
Toni Nykanen
Similar Messages
-
Slow attachment upload with Exchange Web Services (Outlook 2011 for Mac?)
We're experiencing slow attachment upload with Exchange Web Services versus MAPI, OWA, and Outlook Anywhere. I'm not totally certain that it is Exchange Web Services or specifically Outlook 2011 for Mac. I attempted to test with the Mac Mail
App, but it makes it difficult to tell when the attachment has been uploaded and the file has been sent. Here's what we're seeing (10mb file):
MAPI / RPC/HTTPS / OWA: 10-15 seconds upload time
Exchange Web Services (Outlook 2011 for Mac): 60-90 seconds upload time
Thoughts? Any idea why we would see such a drastic difference in attachment upload time? Any way to prove definitively that it is Exchange Web Services vs. Outlook 2011 for Mac? We've tried it from multiple locations with multiple different machines,
and although the upload times vary (some locations have more bandwidth etc) the ratios remain similar.
Hi ,
Does all the user occurred the issue ?
If only special user, I recommend you do the following steps and test:
1.Remove and re-add the email account and check if this helps to resolve the issue.
To remove and add the email accounts:
Open Outlook > GO to Tools > Accounts > Click on "Minus" symbol to remove and "Plus" to add an Email account.
2.Creating a new user profile:
http://support.microsoft.com/kb/2439218/
3. If the issue persists, rebuild the data base and check the results:
http://support.microsoft.com/kb/2360509
You can also post it on Office for MAC forum to get special support about the difference between Outlook and Outlook for MAC.
http://www.microsoft.com/mac/support
Wendy Liu
TechNet Community Support -
Hi!
We need to implement authentication using our own methods, and the authentication
information is provided to the web service implementation in a basic authentication
header. The problem is, that the servlet
weblogic.webservice.server.servlet.WebServiceServlet, which handles web services
in
wls 7.0.sp2, always attempts to perform authentication, if the header is present.
Is there any way to circumvent this, because we want to implement authentication
on our own?
I already know two workarounds:
The best would of course be to implement a custom security realm for our own
authentication system. This is not an option, implementing an own security
realm is overkill for this specific web service.
The other way would be to route the requests by way of a custom servlet, which
would
remove the basic authentication header, and put the authentication info in custom
headers, such as x-auth: <user:password>, or smthng similar, and after successful
authentication, make a call to bea's servlet weblogic.webservice.server.servlet.WebServiceServlet.
But still, I'd like to know if there is any way to tell bea's servlet to ignore
the basic
authentication header?
Oh yeah, by the way, this is URGENT, as always. (really!! ;)
Toni NykanenCurrently there is no option to turn off security check.
I think you can use a servlet filter mapped to the URL
of your service, instead of a proxy servlet?
Regards,
-manoj
http://manojc.com
"Toni Nykanen" <[email protected]> wrote in message
news:3ef1577b$[email protected]..
>
Hi!
We need to implement authentication using our own methods, and theauthentication
information is provided to the web service implementation in a basicauthentication
header. The problem is, that the servlet
weblogic.webservice.server.servlet.WebServiceServlet, which handles webservices
in
wls 7.0.sp2, always attempts to perform authentication, if the header ispresent.
Is there any way to circumvent this, because we want to implementauthentication
on our own?
I already know two workarounds:
The best would of course be to implement a custom security realm for ourown
authentication system. This is not an option, implementing an own security
realm is overkill for this specific web service.
The other way would be to route the requests by way of a custom servlet,which
would
remove the basic authentication header, and put the authentication info incustom
headers, such as x-auth: <user:password>, or smthng similar, and aftersuccessful
authentication, make a call to bea's servletweblogic.webservice.server.servlet.WebServiceServlet.
>
But still, I'd like to know if there is any way to tell bea's servlet toignore
the basic
authentication header?
Oh yeah, by the way, this is URGENT, as always. (really!! ;)
Toni Nykanen -
I am not able to invoke a web service deployed on WebLogic 8.1 SP2 via a client using the proxy jar provided by WebLogic's JWS > Overview > Generate Java Proxy tool.
I am getting a java.net.ConnectException.
Both the client and the WebService are on the same server.
Thanks!!
Inder./Please see the instructions below. If this does not help, please open a case with customer support and tell them it may be related to CR235479
DESCRIPTION:
When a platform domain is created, the admin server can be started without
any issues and a managed server can also be started without any errors if
using startManagedWebLogic.sh. But when a managed server is started using the
nodemanager, the managed server fails to start with the following error.
The WebLogic Server did not start up properly.
java.lang.NoClassDefFoundError: com/bea/wsrp/util/debug/Debug
(Complete stack trace with be added as a note)
The reason for this is that:
startWebLogic.sh(cmd) and startManagedWebLogic.sh(cmd) for platform domains
call <User domain>/setDomainEnv.sh which includes all the jars necessary for
a platform domain in the CLASSPATH.
Whereas startNodeManager.sh calls <WL_HOME>/common/bin/commEnv.sh, which is
the same for both platform and server installations of weblogic and has only
weblogic.jar in the CLASSPATH.
Looking at historical cases, the steps to start NodeManager successfully in a
platform domain are:
1.
a. Copy admin server classpath (from <user Domain>/startWebLogic.sh) to
that of all managed servers in the 'Remote Start' tab of the WLS Console
OR
b. Copy admin server classpath to <WL_HOME>/server/bin/startNodeManager.sh
(If the same nodemanager is used to manage server domain servers and platform
domain servers, will there be any issue with this approach??)
2. Copy the wsrpKeystore.jks file from your domain directory to the
nodemanager directory (the parent of the directory where all the server
directories are replicated in the node manager. By default: <WL
HOME>/common/nodemanager)
But these steps are not publicly documented in edocs.
CONFIGURATION:
Weblogic Platform Domain 8.1 (all service packs)
WORKAROUND:
Steps 1 and 2 above. -
Hi,
I am getting one problem with LiquidData SP2. I am invoking a Web Service (LiquidData
query exposed as WS) through a Java client and getting following exception,
com.bea.ldi.server.common.MetaDataException
at com.bea.ldi.server.common.DefaultStoredQueryMetaData.listStoredQuery
nfo(Unknown Source)
at com.bea.ldi.webservice.QueryHandler$WSDLWrapper.<init>(Unknown
Source)
Same Web service is running fine with LiquidData SP1. I am trying SP2 b/c with
SP1 it had some issue with .NET client but i will test that after it will pass
Java test.
(Its happening with all the queries which accept some input parameters)
Any suggestions????
TIAYws - I sent you an update.
- Mike
"Phil Perkins" <[email protected]> wrote:
>
Was the cause of this ever established?
"Mike Reiche" <mreiche@newsgroup_only.com> wrote:
The WSDL's generated by LD8.1sp2 are fine.
- Mike
"Mike Reiche" <mreiche@newsgroup_only.com> wrote:
Open a case with BEA Support. I am investigating a problem with the
WSDL's generated
by LD 8.1sp2 - will post again when I have more info. Could be thatleading
spaces
before the <?xml..> are causing problems.
- Mike
"Najeeb" <[email protected]> wrote:
Hi,
I am getting one problem with LiquidData SP2. I am invoking a Web
Service
(LiquidData
query exposed as WS) through a Java client and getting following exception,
com.bea.ldi.server.common.MetaDataException
at com.bea.ldi.server.common.DefaultStoredQueryMetaData.listStoredQuery
nfo(Unknown Source)
at com.bea.ldi.webservice.QueryHandler$WSDLWrapper.<init>(Unknown
Source)
Same Web service is running fine with LiquidData SP1. I am tryingSP2
b/c with
SP1 it had some issue with .NET client but i will test that afterit
will pass
Java test.
(Its happening with all the queries which accept some input parameters)
Any suggestions????
TIA -
Best Practice/Standard for Securing and Attaching Files in a Web Service
Thanks in advance.
Being new to Web Services as well as most of my team. I would like to know what is the best practice for transporting files via a Web Service. I know of several methods and one that seems to be the standard, but you can't really tell in this ever changing world of Web Services. Below are the options that I have found.
1. MIME encoded the file and embed in the payload of the SOAP message
2. SwA (SOAP with Attachments) which applies MIME attachments to SOAP. I think this is similiar to the way emails are handled.
3. DIME (Direct Internet Message Encapsulation) similiar to MIME encoding but is more efficient
4. MTOM (Message Transmission Optimization Mechanism) I really not understand this method, but it seems that this is the NEW standard. I just don't understand why.
5. Utilize HTTPS and download the file from an accessible file server w/ a login id and password.
Is there someone out there that understands this problem and can assist me in understanding the pros and cons of these methods? Or maybe there is a method that I'm overlooking altogether.
ThanksJWSDP supports securing of attachments [1]and will soon support securing MTOM attachments too. [1]http://java.sun.com/webservices/docs/2.0/xws-security/ReleaseNotes.html
-
Installing collab 4.1 sp2 - Web services enhancement
All,
I have been reading through the install guide for collab and one of the pre install steps is to install Web services enhancement 2.0. But if I do a search on www.microsoft.com for Web Services Enhancement all I find is Web Services Enhancement 3.0. Can I install 3 instead of 2? Has anybody done this? I will be doing this install on Monday. Any help would be appreciated.
Thanks,
BerneyHi Dave,
Please check the below link,
How to create Xcelsius Dashboard based of BI Web Service ( BIWS )
Using Webservice in Dashboard
Webservices in Dashboard - Issue
Also change your original link here and try to load
(sample link)
From:
http://BOE:8080/dswsbobje/qaawsservice/bisw?def=1&cuid=xxxxxxxxxx
To:
http://BOE:8080/dswsbobje/qaawsservice/bisw?wsdl=1&cuid=xxxxxxxxxx
or else can you post your url here.
Hope this helps.
--SumanT -
How to pass .txt file as an attachment to the web service (SOAP Attachment)
Hi,
I am creating web service using NetBeans 6.5 IDE and JAX-WS. I create a web application and then create web service using provided interface. I want to add .txt file as an attachment/parameter to the web service operation using "Add operation" interface. Don't want to add as an attachment to the SOAP message by creating it explicitly. IDE generates SOAP request and response automatically when the service is tested using "Test Web service" option. How can I add attcahment when I add operation so that it will appear in the generated SOAP message ?
TIA.Hi AnitaDP,
Attachment doesn't work in web service. You have to pass the content of the text file as a String or as an array of bytes to a method of your web service. From there, you may save the passed data in a file. -
Web service connection problem via web service data control (SOAP/REST)
Hi
I developed a simple "hello word" web service that I deployed on Integrated WLS.
Web service works fine - I tested it from SoapUI.
I created another application to call "hello word" using "web service data control (SOAP/REST)" in JDeveloper.
When I test it via "Oracle ADF Model Tester" application works as I'm expecting, but when I create JSPX page,
drag and drop webservice method as ADF parameter form and run it receive notification (screenshot):
"WSM-07620 : Agent cannot enforce policies due to either failure in retrieving polices or error in validations, detail= "WSM-02557 The documents required to configure the Oracle Web Services Manager runtime have not been retrieved from the Policy Manager application (wsm-pm), possibly because the application is not running or has not been deployed in the environment. The query "&(@appliesTo~="WS-CONNECTION()")(policysets:global/%)" is queued for later retrieval. "."
What I'm doing wrong?
Why I'm able to access web service from any other application but not from jdeveloper?
RegardsHi,
I am not sure which JDev you are using, but looks like you have some policies setup for WSDC using GPA (global policy attachment) and your policy manager(wsm-pm) is not running. Can you check if the wsm-pm application is properly deployed in your Integrated WLS. You can see this from the list of deployed apps in WLS console.
-Vishal -
12002 The Reporting Web Service is not working.
Hi :)
I have WSUS on Windows Server 2012 std. with Internal Database. Today I've installed 7 updates from patch tuesday and after restart I've got
error 12002 The Reporting Web Service is not working
I can see now that updatet clients can not report their status anymore :(
What's up ? Any suggestion ?
Best regards
NenadHi,
I would start by verifying that the /ReportingWebService resource is properly configured in IIS.
Correct configurations can be found in the WSUS Technical Reference Guide: IIS
Settings for WSUS 3.0 SP2 Web Services.
Also,Under ReportingWebService
Made sure all were set to disabled except for Anonymous Authentication
Anonymous Authentication Enabled
ASP .NET Impersonation Disabled
Basic Authentication Disabled
Forms Authentication Disabled
Windows Authentication Disabled
Regards,
Clarence
TechNet Subscriber Support
If you are
TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Securing web services with Sun Access Manager
Hi!
I have gone through some documentation about Sun Access Manager, and I'm a little bit confused.
What I want is to secure some web services which are deployed on a BEA WebLogic 9.1 server (WLS). Two solutions are possible: To install some kind of plugin into WLS or to place some kind of proxy in front of WLS. In both cases, the purpose would be to authenticate the caller based on some kind of ticket (SAML or similar) and authorize access to the web service.
I have read about the "Sun Java System Access Manager Policy Agent 2.2 for Weblogic 9.1" (those guys really like long names....), but in this documentation web services aren't mentioned at all. They only seem to care about HTTP requests from a browser.
I have also read about the Policy Agent 2.2 in the documentation called "Sun Java System Access Manager Policy Agent 2.2 Guide for Sun Java System Application Server 9.0/Web Services" (puh...). This document explicitly talks about securing web services the way I want.
My questions are:
1) Is it possible to secure WLS based web services in the same way using the Policy Agent for WLS?
2) Are there any documentation/tutorials/etc?
Thanks in advance :-)
Anderswhat you need is a webservices agent that would enable you to "protect" your webservice provider, which I assume is on a BEA weblogic provider.
the "Sun Java System Access Manager Policy Agent 2.2 for Weblogic 9.1" is "NOT" awebservices agent, but a normal J2EE policy agent.
So.. having said that. here's what I'd recommend.
1. install the webservices agent on bea weblogic. (note: NOT the J2EE policy agent)
2. configure it to use your access manager instance for authentication.
3. configure your webservices client to use the webservice provider. (note: you'd need the webservices APi's available on the client too... so the quick dirty method would be to install the webservices agent on your client too....) you can later bundle the webservices client independently and provide your"customers" with a webservices client bundle...
4. voila... your webservices are not "protected" by acces manager ;-) -
Sample java code for web service calling
Hello,
I need to call the web services for adding/updating records on Oracle On Demand Entities.
In particular i need a sample code in java language that explain how to append the sessionid
to the SOAP request when calling the web service.
thanks in advance.Hi,
Each time you perform any SOD Operation after Login, ensure have your JSessionId attached to your actual Web Service URL like in example below
wsLocation ="https://secure-XXXXX.crmondemand.com/Services/Integration";
jsessionId="8d928e8330d53c6f954b16194731bad78f5f111c2043.e34PaxyNchuLe34Rax4SchaKchz0n6jAmljGr5XDqQLvpAe";
String url=wsLocation + ";jsessionid=" + jSessionId;
Use this url for all your future SOD Operation till you logout.
Regards
Deepak H Andeli -
Web service - is it possible send/receive a file consuming a web service ?
Hello expert,
is it possibile attache a file on web service's message ?
ps. My system is without Java stack and without PI.
Tks,Hello,
Unfortunately not.
SOAP with attachments (of any kind) is only supported with NetWeaver application server 6.4 WITH JavaStack. The ABAP version only supports SOAP without attachments.
We solved this issue for outgoing files using an IDOC type which we send through an RFC destination to a URL on a webserver outside SAP which accepts a file as parameter.
regards -
Need help with Web Services SDK.
I am new to Web Services SDK can I get documentation on same.
For documentation about the BOE XI R2 SP2 Web services go to our DevLibrary: http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
then locate the Web Services topic under which, you will find the necessary info to help you deal with BOE Web Services.
Cheers
Alphonse -
(261680070) Q SYNCH-11 How do my web service methods accees EJBs and java classes?
A<SYNCH-11> How do my web service methods accees EJBs and java classes?
A<SYNCH-11> It is simple to use java classes, just do it as you would ordinarily.
The .jws file really contains a simple class so you can program with it in the same
way that you would use a regular Java class.
To use an EJB you can go and access it directly as you would with any EJB remote
client (lookup home stub, create, etc) or if the EJB is deployed to WLS you can use
a control to provide a very simple wrapper to the EJB. We will see this in detail
on Thursday in the ADVC module.Futher information about the possibility of callback:
It may be possible for a synchronous only web service (i.e. MS .net) to even paticipant
in the callback functionality of asynchronous web services. If the client implements
the appropriate methods for the callback but listens for them on a different port
or binding than the SOAP request, then web service may be able to build a response
if the client's "callback URL" is submitted as the beginning part of a conversation.
Watch the BEA developer forum (http://dev2dev.bea.com) for more information about
this approach and other tips and techniques for building web services.
"Adam FitzGerald" <[email protected]> wrote:
>
Q<SYNCH-03> I heard that MS .net only implements synchrnonus method? If
this is true.
Does it means my async methods will only work with J2EE clients?
A<SYNCH-03> I do not know the limitations of .net but let me point out that
is very
difficult to provide asynchronous web service method invocation (this is
different
from an asynchronous web service). HTTP as a general communication protocol
is based
on a request and response paradigm so your client libraries will mostly
likely be
expecting a response even if it is empty (check the asynchronous example
from today
to see that the start method still returns an empty response). You must
distinguish
this from the notion of an asynchronous web service which is a business
operation
that occurs on the server whose return value/result is not directly associated
with
building response to the client. An asynchronous web service can (and generally
will)
be started and stopped with web service operations that are invoked synchronously.
Thus MS .net clients can still be client to WLS hosted web services.
Maybe you are looking for
-
CreateNewDialog of dialog manager with caching option True cause ID CS6 crash on quit in windows
following line of code cause crash on some windows machine when i quit indesign (even without doing anything) but if last option (caching) replace with kFalse there is no crash on any machine .there is no crash on Mac in either case. IDialog* dialog
-
Creating a New Virtual CU in iw32
Hello, When I try to create a new Virtual CU (VCU) in IW32 the characteristic fields are already populated with the characteristics of the previously created VCU. But when I save the VCU the characteristics aren't saved with it so when I went back in
-
APO study materials - Requries suggestion
Hi all, I am basically i am PLM consultant where i am expert in Project system, Quality management and Cprojects modules. Besides I am PMP certified and i have a good knowledge on project management in planning, execution and monitoring controlling
-
Missing serial number for Photoshop CS2 to complete installation.
I just downloaded a free copy of Photoshop CS2 and I now need the serial number to be able to complete the installation. Where can I find it?
-
Add ROS Supplier from OPI to RFx
Hi All, I am trying to add bidders in RFX through registered vendors from ROS via OPI. After the registerd vendor is transferred in the RFx and we click on check button sometimes the system throws an error *'Bidder is not released'.*I checked the Man