Call MS com object via SOAP from WLS 6.1
I generated a WSDL file for a Microsoft com object and can easily write a WL
web service that calls it using Workshop 7.0. But I need to deploy it on a
WLS 6.1 server. (I was hoping that Workshop would simply generate the source
code required for accessing the com object via soap, which I could then cut
and paste into my own source, but it doesn't do that.)
Does anyone have an example of how to do this?
Hi Mel,
You said that you want to "deploy it on WLS 6.1", but I think what you really
meant is that you want a J2EE component (i.e. JSP, Servlet, EJB, etc.) running
in WLS 6.1 to consume the WSDL you created from the COM object, right?
If so, the web services package in WLS 6.1 can be used to do this :-) If you tell
me what type of J2EE component (i.e. JSP, Servlet, EJB, etc.) you want to be the
client, I'll provide you with some sample code. Also, be sure you attach the WSDL
that was generated, because WLS 6.1's WSDL processor isn't as complete as the
one in WLS 7.0 and Workshop :-)
Regards,
Mike Wooten
"Mel Werbow" <[email protected]> wrote:
I generated a WSDL file for a Microsoft com object and can easily write
a WL
web service that calls it using Workshop 7.0. But I need to deploy it
on a
WLS 6.1 server. (I was hoping that Workshop would simply generate the
source
code required for accessing the com object via soap, which I could then
cut
and paste into my own source, but it doesn't do that.)
Does anyone have an example of how to do this?
Similar Messages
-
How can I call a COM object from a PL/SQL CODE
Hi everyone,
Does anyone know how to call a COM object from a stored procedure in oracle.
a sample of code
please help,
HilaireAre you familiar with external procedures? Basically, you can expose functions exported by a shared library (i.e. a DLL on Windows) to the Oracle database. My assumption is that you'd probably need to write a wrapper DLL around the COM object, since I believe you can only pass fundamental data types back and forth (i.e. no object references). You'd expose the method(s) of that wrapper DLL to the database via external procedures.
Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com/askDDBC -
How to call a COM object from an Oracle Form?
Hi All,
Pls advice. How to call a COM object from an Oracle Form?
Thanks.try asking the "Form" forum
-
Problem calling a web service via SOAP ad.
Hi,
I need to call a web service in an synchronous RFC to Web service scenario.The provider of service said me that they are going to accept production order with the service they provide. However, service semms to have only 2 request parameters one is a string enumeration ("online" or "offline") but the other has no type. In WSDL it is shown as the following -
-<s:element minOccurs="0" maxOccurs="1" name="strFilenameOrXML">
- <s:complexType mixed="true">
- <s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
When I try to test the web service with Altova XML Spy it gives me the error "Object reference not set to an instance of an object" .. at StokbarPlus.ProdService.WriteProdToSB(XmlNode strFilenameOrXML, IntegrationType EntegrasyonTip)..
I guess the service is waiting for a xmlNode object...
Is it possible to assign an XI message(coming from RFC) as an xmlNode object to an element of a webservice message and send it by using SOAP adapter?.
I tried send the SOAP message by putting the whole xml(a sample order document) as a string constant in the strFilenameOrXML element and send but it did not work...
How should I proceed?
Thanks in advance for your help,
-TarikHi,
Problem is still unsolved.
By the way I figured out that they are waiting the xml message inside strFilenameOrXML tag and tried to send it so. However it does not work. I have tried two different ways to send it.
First one is by using messages in WSDL: did not work because special chars like <,> in the message that I am sending in the tag is escaped .
The Second way is using the data types that I developed, it did not work too since the receiver expects one of the inner node's namespace prefix to exist.
I tried exporting the xsd of the message type, adding attributeFormDefault="qualified" to header, and reimporting it. It did not work, because it changes all nodes, but they want some specific node to be qualified.
Any suggestions? -
Calling 9iLite Stored Procs via ODBC from C/C++
Hi all,
The Oracle 9i Lite documentation seems to offer contradictory advice on calling stored procedures over ODBC using C/C++.
Page 2-11 of Oracle9i Lite "Developer's Guide for Java" (pdf) states "Oracle Lite does not support the SQL CALL statement for invoking stored procedures". Page 2-23 of the same document states "to execute a stored procedure....use the following CALL statement".
Does anyone know what the correct method is? CALL does not work for me, but I don't know if it's a coding error, or whether I need to invoke the SP a different way.
thanks for any help you can give,
Owen.Since Mr. Tamashunas's question began elsewhere, I'll give some background for others. Mr. Tamashunas has an ASP (using ADO) using the following code:
Oracle Package / Proc:
CREATE OR REPLACE PACKAGE BODY UserInfo
AS
PROCEDURE sp_getUsers (
p_errcode out NUMBER,
p_errdesc out VARCHAR2,
iCurs in out tCurs)
IS
BEGIN
p_errcode := 0;
OPEN iCurs for Select * from naowner.users;
EXCEPTION
When others then
p_errcode := SQLCODE;
p_errdesc := SQLERRM;
end sp_getUsers;
END; -- package body
ASP code:
strConn = Session("dbConnStr")
cnnOracle.Open strConn
'Creates a command object.
Set cmdPackage = Server.CreateObject("ADODB.Command")
Set cmdPackage.ActiveConnection = cnnOracle
cmdPackage.CommandType = adCmdStoredProc
cmdPackage.CommandText = "UserInfo.sp_getUsers"
'cmdStoredProc.CommandText = "{call UserInfo.sp_addUser(?,?,?,?)}"
cmdStoredProc.Parameters.Append
cmdStoredProc.CreateParameter("errcode",adInteger,adParamOutput)
cmdStoredProc.Parameters.Append
cmdStoredProc.CreateParameter("errdesc",adVarChar,adParamOutput,1000)
cmdStoredProc.Execute
---------- or -----------------
Session("dbConnStr") = "DSN=novoarch;UID=naowner;PWD=nadba"
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open Session("dbConnStr")
set rs = objConn.execute("{call LogUtils.sp_getloginfo(:p_errcode, :p_errdesc,
:iCurs)}")
SQLBindParameter is an ODBC API call that allows you to bind parameters to procedure calls, rather than providing the parameters explicitly, i.e.
{call foo( 1, 2, 'abc' )}
vs
{call foo( ?, ?, ? )}
ADO is a higher-level interface to ODBC (or OLEDB). In ADO, you accomplish the same thing with the CreateParameter & Parameter.Append functions in your code.
Justin Cave
ODBC Development -
Error while calling the com object to open the word document.
Below is the error: Though it says the insufficient memory,
we have enough memory on the server and it is avaialable. I have
checked the server statistics and cpu usage too.
Error also talk about CF_COMPROXY and I am not sure about
this. Has any one seen this before or does anybody has any
solutions for this.
Detail The cause of this exception was that:
AutomationException: 0x800a13e9 - There is insufficient memory.
Save the document now. in 'Microsoft Word'.
Message An exception occurred when executing a Com method.
RootCause struct
Code 2148144105
Description There is insufficient memory. Save the document
now.
Message AutomationException: There is insufficient memory.
Save the document now.
Source Microsoft Word
Thank you all in advance.What version of Word do you have installed? Are you trying to
save it as
another format?
This could be completely unrelated, and the only reason I ask
is because I
get that same "out of memory" error (without the com part) if
I try to save
an invoice from MS Money 2005 Small Business as a pdf using
Cute PDF Writer.
It will also throw an error when trying to save an invoice
template if the
printer is assigned to PDF Writer. Now I use Flash Paper to
save them as
pdfs. I still get the error when trying to save a template,
but at least I
can now generate the pdf.
The only reason I mention it is because it makes me think
there is something
in MS product that is trying to prevent you from using non-MS
formats. I
could be way off and, honestly, I have no clue what is
causing the problem,
but is seemed too similar to be a coincidence so I thought I
would pass it
along just in case.
Bryan Ashcraft (remove brain to reply)
Web Application Developer
Wright Medical Technology, Inc.
Macromedia Certified Dreamweaver Developer
Adobe Community Expert (DW) ::
http://www.adobe.com/communities/experts/
"t_sam_2000" <[email protected]> wrote in
message
news:[email protected]...
> Below is the error: Though it says the insufficient
memory, we have enough
> memory on the server and it is avaialable. I have
checked the server
> statistics and cpu usage too.
>
> Error also talk about CF_COMPROXY and I am not sure
about this. Has any
> one
> seen this before or does anybody has any solutions for
this.
>
> Detail The cause of this exception was that:
AutomationException:
> 0x800a13e9 -
> There is insufficient memory. Save the document now. in
'Microsoft Word'.
> Message An exception occurred when executing a Com
method.
> RootCause struct
> Code 2148144105
> Description There is insufficient memory. Save the
document now.
> Message AutomationException: There is insufficient
memory. Save the
> document
> now.
> Source Microsoft Word
>
> Thank you all in advance.
>
> -
Accessing a webservice via SOAP from Designer with Authentication
Hi,
I've created a simple process, with one "setValue". The process has two variables "StringIN" and "StringOUT". The setValue sets StringOUT to "hello " + StringIN. The process is therefore called "helloTest" ;-)
Now, when I create a PDF in Designer, I make a connection to my webservice. However, I must supply the Username/Password, because the service is not accessible without authentication. In XMLSpy for instance, I get an Authentication popup ...
How can I do this in Designer ? The popup does not show and I get an error saying that Acrobat can't read the file ...
Regards
YvesMake sure your service doesn't use authentication.
Go under http://localhost:8080/adminui. Then under Services/Archive Administration/Service Management, find your service.
Then under the Security Tab, set the Security Option to Disabled.
That should let you make an anonymous web service call properly to that service.
Since your service also call other services, you might have to do the same for every service in your process (setvalue service, and other ones if you use other services). They all need the security to be disabled.
Jasmin -
I have client HTML forms sending info to the middle tier. On the middle tier are Microsoft COM objects that have the business logic. The middle tier is Windows NT.
Previously, Microsoft IIS was the applications server and ASP was used to access the COM objects.
How can I use Oracle9i Application Server to call the COM objects? I suppose that I could receive the client input in a java servlet and make CORBA calls via a CORBA-COM bridge to the COM objects. Is there a better solution? If I have to do the CORBA-COM, anything I should look out for? I suppose the performance can't be very good over that many layers.
nullHi John,
Thanks for the reply.
I have already looked into those topics which talks about Jintegra( com2java tool) and EZ Jcom .Basically these generate the java proxy classes, which is tedious to manage.
In asp we have something like Server.createObject(...). Is there anything similar to this in jspx?
Regards,
Asha -
Com object implementation in forms 9i
Has anyone actually implemented this? We have a 3rd party application (imaging software) that has .dll's that under forms 5 we have accessed within the forms pl/sql. Under 9i, I understand the need to create a javabean for this com object and then from pl/sql use the fbean package to implement it.
The example I've seen of this is the Microsoft Word one documented in "Client Side OLE Integration from Oracle9i Forms". I find this article to be very confusing. Does anyone have a link to anything that may provide better info?
One particular question I have is do I need to create a javabean on the Jacob package first and then the com objects for my 3rd party application? Or can I just directly create a javabean on my com objects?
Any info in regards to this would be appreciated.JACOB provides a series of APIs that you can use to call COM methods from within Java So you have to create a JavaBean which does these calls. That JavaBean can import the JACOB classes so you don't have to write that all again.
-
CFOBJECT creating a COM object
If anyone was wondering how to find the program Id of the DLL
for use as the class parameter in the cfobject tag they need to
search for the DLL in the registry using regedit. Hope this helps.
This might be obvious to some but could not find any mention of it
in the documentation.I have enabled the Activex setting in IE . But my component is not an Activex Component .
Please let me know how to call a COM object in javascript -
COM Object gets Message stating it cannot access the server.
I support an Application that would call Outlook to send an e-mail, it uses a COM object to do so, I have a client that has Exchange 2013 and Outlook 2010, trying to send an SMS to a Cell phone, in the form of [PHONE_NUMBER]@vtext.com (Verizon SMS), gets
a message stating that the server cannot be reached (Retry/Work Offline / Cancel), If I select Retry, nothing happens, if I select Work Offline, it will take it to OUTBOX but will not send it, unless outlook is closed and then re-opened. However, if I add
a CC email address, the CC'd email will be sent right away once the message is put on the outbox, but the original phone_number email will stay in the outbox.
Haven't seen that specific behavior before.
Any light would be greatly appreciated.Sending an Email/SMS is a small feature that was added to the application to make it easier for our clients to communicate the Service Calls to the technicians, send Reports, and/or send Invoices/Quotes to their clients.
That being said, the Application was working fine with Previous Outlook Versions up to 2010 (though not quite sure what changes were done by the Patches, it has stopped on some of the 2010 versions (specially on 64-bit environment) Our developers purposely
selected to call the COM object for the user/client to have full control of the communication (client still needs to click the "ALLOW" Button to allow the email to be sent.
Application is not a plug-in (Add-in) to Outlook, but rather a Full "Service Company Suite" with Email capabilities. It was not Written in .NET or VS so using .NET Objects at the moment is not a choice, unless the developers create some soft of connector
plugin to talk to Outlook.
The Link provided really has nothing to do with the issue (the SMS is really sent as a regular Email) -
Calling test sequence from CVI DLL that use ATL COM object does not work
I am trying to call some DLL function writen in CVI from teststand. The CVI DLL is using ATL COM object(Written by me).
The ATL COM object making instance of several ATL COM object inside it (including two controls that contains dialog). If I use a client writen in VC++ 6 and use the ATL COM (writen by me) works perfectly. But if I try to use it from CVI DLL it does not work any more.
What is wrong? The client is passing an IUnknow interface to my component. Can anybody explain me what is wrong?It is not clear from your question as to what is specifically failing. If possible, one option would be to remove TestStand from the picture and see if the problem still occurs using a CVI EXE that invokes the CVI DLL.
Scott Richardson - NI
Scott Richardson
National Instruments -
Calling COM object from an Applet
Hi,
Can an applet communicate with Microsoft COM object?
ThanxCheck out some software called JIntegra (commercial). Also, I think there used to be some sun stuff... but it got dropped... and then got picked up again... but I don't know what the status is on it.
-
Instantiating COM objects from within the java code in WLS
is there a way to use COM objects from servlets or ejb's,
with JVM, not with JView.
thanks,
ali.Sun has released a beta product - its a COM bridge that you can use
to connect a Java2 JVM to a COM object with. I havent tried it yet
but I probably will soon.
Brad
"Michael Girdley" <[email protected]> wrote in message news:39b86deb$[email protected]..
>
>
No, at the current time we only support COM integration when using the
Microsoft JVM. The Jintegra product from Linar is good.
Thanks,
Michael
Michael Girdley
BEA Systems Inc
"Ali Ozgun" <[email protected]> wrote in message
news:[email protected]..
is there a way to use COM objects from servlets or ejb's,
with JVM, not with JView.
thanks,
ali. -
Error calling BAPI_ADDRESSEMP_CREATE via SOAP
Hi,
I'm calling the remote-enabled function module (from Adobe Flex) via SOAP and its erroring and not returning anything. If I debug it, it gets as far as the statement below (in the function module HR_MAINTAIN_MASTERDATA) then just stops.
CALL DIALOG 'HR_MAINTAIN_MASTER_DATA' USING BDCDATA MODE 'N'
I know mode N is no-display, so why should this error? I know its coming into SAP via the ICM (over http) so there's no gui, but do we need a gui? I've seen remote-enabled function modules in the past that contained call transactions, and they worked fine!.
Points awarded for help
GrahamI've been doing some more digging.
Basically, the BAPI is simulating the infotype 0006 screen to put data in, but any error message or unexpected screens that comes up will cause the BAPI to fail. The BAPI doesn't do much validation before passing the data to the screens, it just checks that you've locked the employee record (and maybe does some other checks as well like authorisations).
This means that you have to check your data in the call.
Here are some things that I found to check
1: Make sure that the start date, end date and subtype are supplied and are in the correct format (you can do this by placing an external breakpoint in the BAPI and checking it from here).
2: Make sure all mandatory fields are specified.
3: Make sure that there aren't any dynamic actions set up on infotype 0006 that could display other screens. Dynamic actions are normally ignore in batch input mode, but since the BAPI is doing a CALL DIALOG and not a CALL TRANSACTION, the field sy-binpt is not set to 'X'. One way round this is to create a z-function module which sets sy-binpt to X and then calls the BAPI.
Any other suggestions welcome
Maybe you are looking for
-
Hi, I saw that spec shows the following: MEMORY Up to 16GB DDR3-1600 MHz, 2 SODIMM slots (1 x 2GB / 2 x 2GB / 1 x 4GB / 1 x 2GB + 1 x 4GB / 2 x 4GB / 1 x 8GB / 2 x 8GB) I wanted to know if it supports 1 x 4GB + 1 x 8GB Thanks, Yoav Solved! Go to Solu
-
How can I print double sided from my MacBook? The option is not highlighted, shazmina2
-
After I receive my serial number, I couldn't find the Acrobat 11 disc I purchased. Is there still a way to download the software online somewhere?
-
When trying to get new messages, keep getting asked for password and then get "operation couldn't be completed. (MFMessager error domain error 1032)-Why?
-
Problems with the "comm" protocol on Nokia 6630
Hello, I am trying to write a simple MIDlet for my Nokia 6630 phone using the "comm" protocol. The problem is that System.getProperty( "microedition.commports" ) returns "null" and when I call Connector.open( "comm:0;baudrate=9000" ); I get javax.mic