How do I Send a xml to client?
Hi friends:
It is possible to send a xml to client without a xml file in the server?
I create a Document in the server and the code is :
DocumentBuilderFactory df=DocumentBuilderFactory.newInstance();
DocumentBuilder db=df.newDocumentBuilder();
Document doc=db.newDocument();
Element el=doc.createElement("root");
doc.appendChild(el);
Comment co=doc.createComment("This is a comment");
el.appendChild(co);I want to write the Document to a Stream and send the XML stream to client ,so the client can display a xml.
The code is:
resp.setContentType("text/xml");
resp.setContentLength(200);
resp.setHeader("Content-Disposition","inline;filename=address.xml");
ServletOutputStream so=resp.getOutputStream();
PrintStream ps=new PrintStream(so);
System.out.println(doc);
ps.print(doc);
so.flush();
ps.close();I don't want to create a xml in the server so I can do this only use stream .But what client get is a momery address! It is org.dom.xml....@sd7fs87d What wrong with my code ? How to send the xml to client without create the xml file in server?
Thks in advanced!
Yashnoo,
What XML package that you used?
It should have a class for outputing xml
example using JDOM
XMLOutputter writer = new XMLOutputter(Format.getPrettyFormat());
OutputStream out = new FileOutputStream("dummy.txt");
writer.output(doc, out);
//this case it write to a file but in your case you can pass in ServletOutputStream
or ByteArrayOutPutStream then use method writeTo() to send it to ServletOutputStream
another thing, make sure to set your content length corretly,
resp.setContentLength(200);
how do you know its length is 200
if you are going to use ByteArrayOutPutStream, it will give you the correct length
for instance
ByteArrayOutPutStream out = new ByteArrayOutPutStream ();
XMLOutputter writer = new XMLOutputter(Format.getPrettyFormat());
writer.output(doc, out);
int len = out.size();
now you can do this
resp.setContentLength(len);
finally,
out.writeTo(resp.getOutputStream());
it should send a stream out to the client.
bottom line is, find out your package API or you can post the package you use, I can take a look
here is a sample of using JDOM to create a document then output it out to System.out
good luck
public static void createXMLFile()
Element root = null;
Document doc = new Document();
try
String[] arr = {"MainElement ","SubElement1","SubElement2","SubElement2"};
String[] arr1 = {"MainElement ","SubElement111","SubElement22","SubElement332"};
root = new Element("root");
doc.setRootElement(root);
//for each array do the following
Element e = new Element(arr[0].trim());
root.addContent(e); //<MainElement>
for (int i = 1; i < arr.length; i++)
e.addContent(new Element(arr.trim())); //<SubElement1>
//finally output to a file as your choice
XMLOutputter writer = new XMLOutputter(Format.getPrettyFormat());
// OutputStream out = new FileOutputStream("dummy.txt");
writer.output(doc, System.out);
// out.flush();
// out.close();
catch (Exception e)
e.printStackTrace();
Similar Messages
-
How can I send an XML request to the server using servlets
How can I send an XML request to the server using servlets
http://forum.java.sun.com/thread.jspa?threadID=5158333
http://forum.java.sun.com/thread.jspa?threadID=5158705
Crossposting is lame. -
I JUST UPLOADED A FILE. HOW DO I SEND IT TO MY CLIENT?
HOW DO I SEND A CLIENT A FILE i JUST UPLOADED TO THIS SITE?
If you are on https://workspaces.acrobat .com then you can click on the small icon at the right of the document > select 'Share Document'
At the bottom left corner a pop would appear if you would like to 'Share it with more individuals', select that and enter the email address of the recipient you want to share. -
How can I send an XML request to the server using JSP
Can anybody say how to send a xml request
For ex:
Address:__________
City: ________
State:__________
Country:________
and a Submit Button.
By clicking on the Submit Button -- xml request had to go to the server.
Please send the detailed code for itxml http request..is that wat your are looking for?
-
How can i send a XML document object over the JMS wire
HI,
does anybody has anyidea about sending the XML Document over the JMS and receiving
it n the other side..
regards,
Akhil
Is this the full stack trace?
Akhil Nagpal wrote:
> HI ,
> Sorry the excepiotn is of deserialization...this is the stack trace...mistake...
>
> weblogic.jms.common.JMSException: Error deserializing object
> at weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:140)
> at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:143)
> at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
> at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
> at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
> at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
> at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
> ----------- Linked Exception -----------
> weblogic.jms.common.JMSException: Error deserializing object
> at weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:140)
> at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:143)
> at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
> at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
> at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
> at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
> at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
>
>
> Akhil
>
>
> "Akhil Nagpal" <[email protected]> wrote:
>
>>HI,
>> Actually i have created my own class which implements serializable.
>>I set the
>>object of this class in the ObjectMessage and send it across. Sometime
>>i have
>>to send some vector,sometimes string and sometime a XML document. So
>>i can set
>>these type of objects in my custom serializable object and send it. For
>>sending
>>XML , either i can send it as a string or as u said as Document object.
>>But i
>>want to do send it as a Document object. So i have created a an object
>>of "org.jdom.Document"
>>which implement serializable and setting this object into my custom object
>>and
>>sending this custom object in the objectmessage. But then weblogic throws
>>some
>>exceptions which has nothing to do with serialization.I am printing the
>>exception
>>below. (without the object of org.jdom.Document this custom object reaches
>>safely
>>and happily:))...this exception is something related to transactions.....can
>>you
>>or anybody tell me what could be the reason..
>>I am not able to think why this kind of exception comes only when i try
>>to send
>>the jdom's Document object and never in other cases..
>>
>>java.sql.SQLException: XA error: XAER_RMERR : A resource manager error
>>has occured
>>in the transaction branch start() failed o
>>n resource 'oraclePool': XAER_RMERR : A resource manager error has occured
>>in
>>the transaction branch
>>oracle.jdbc.xa.OracleXAException
>> at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:483)
>> at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:190)
>> at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
>> at weblogic.jdbc.jta.DataSource.start(DataSource.java:569)
>> at weblogic.transaction.internal.ServerResourceInfo.start(ServerResourceInfo.java:1165)
>> at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResourceInfo.java:1108)
>> at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourceInfo.java:287)
>> at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:391)
>> at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1146)
>> at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1101)
>> at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:145)
>> at weblogic.jdbc.jta.Connection.createStatement(Connection.java:204)
>> at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionImpl.java:130)
>> at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:71)
>> at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:134)
>> at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
>> at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
>> at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
>> at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
>> at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
>> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
>>
>> at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1151)
>>
>>
>>any help will be appriciated..
>>Akhil
>>
>>
>>
>>Raj <[email protected]> wrote:
>>
>>>wrap it up as an object message(I think DocumentImpl is Serializable).
>>>This way you
>>>wont be vendor specific and can retrieve it at the other end.
>>>
>>>Akhil Nagpal wrote:
>>>
>>>
>>>>HI Raj,
>>>> thanks for the response..actually we dont want our application
>>>
>>to
>>
>>>be weblogic
>>>
>>>>specific...
>>>> there should be some other way arround....
>>>>
>>>>REgards
>>>>Akhil
>>>>
>>>>"Raj" <[email protected]> wrote:
>>>>
>>>>>There is a weblogic specific XMLMessage similar to ObjectMessage,
>>>>
>>>BytesMEssage
>>>
>>>>>etc.. Try using that to wrap ur XML document and send it across.
>>>>>
>>>>>-Raj
>>>>>
>>>>>"Akhil Nagpal" <[email protected]> wrote:
>>>>>
>>>>>>HI,
>>>>>>does anybody has anyidea about sending the XML Document over the
>>>>>
>>>JMS
>>>
>>>>>>and receiving
>>>>>>it n the other side..
>>>>>>regards,
>>>>>>Akhil
>>>>>
>
-
How I can send emails using the client object model?
I have tried this, but I always get an exception with error message "A recipient must be specified.":
string webUrl = "http://sharepoint.example.com/";
EmailProperties properties = new EmailProperties();
properties.To = new string[] { "[email protected]" };
properties.Subject = "Test subject";
properties.Body = "Test body";
ClientContext context = new ClientContext(webUrl);
Utility.SendEmail(context, properties);
context.ExecuteQuery(); // ServerException thrown here
context.Dispose();
Server stack trace:
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at Microsoft.SharePoint.Utilities.SPUtility.SendEmail_Client(EmailProperties properties)
at Microsoft.SharePoint.ServerStub.Utilities.SPUtilityServerStub.InvokeStaticMethod(String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid)
at Microsoft.SharePoint.Client.ServerStub.InvokeStaticMethodWithMonitoredScope(String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid)
at Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeStaticMethod(String typeId, String methodName, XmlNodeList xmlargs, Boolean& isVoid)
at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStaticMethod(XmlElement xe)
at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessOne(XmlElement xe)
at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStatements(XmlNode xe)
at Microsoft.SharePoint.Client.ClientMethodsProcessor.Process()
msdn link: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.utilities.utility.sendemail.aspxhi
if you will check the code of SendEmail_Client(EmailProperties properties), you will find that it may only send emails to internal users. May be it was made intentionally in order to prevent spamming from client code. So let's see:
internal static void SendEmail_Client(EmailProperties properties)
if (properties.To.Count == 0)
throw new SPException(SPResource.GetString(web.LanguageCulture, "SendEmailInvalidRecipients", new object[0]));
AddressReader func = null;
using (MailMessage mm = new MailMessage())
func = delegate (MailAddress a) {
mm.To.Add(a);
ResolveAddressesForEmail(web, properties.To, func);
new SmtpClient(SPAdministrationWebApplication.Local.OutboundMailServiceInstance.Server.Address).Send(mm);
I.e. it adds recipient in ResolveAddressesForEmail() method. Now let's check this method:
private static void ResolveAddressesForEmail(SPWeb web, IEnumerable<string> addresses, AddressReader func)
if (addresses != null)
foreach (string str in addresses)
if (string.IsNullOrEmpty(str))
continue;
SPPrincipalInfo info = ResolvePrincipal(web, str, SPPrincipalType.All, SPPrincipalSource.All, null, false);
if ((info != null) && (info.PrincipalId > 0))
if (!string.IsNullOrEmpty(info.Email))
try
func(new MailAddress(info.Email, (info.DisplayName != null) ? info.DisplayName : "", Encoding.UTF8));
catch (FormatException)
continue;
if ((string.IsNullOrEmpty(info.Email) && info.IsSharePointGroup) && web.DoesUserHavePermissions(SPBasePermissions.BrowseUserInfo))
SPGroup byNameNoThrow = web.SiteGroups.GetByNameNoThrow(info.LoginName);
if (byNameNoThrow == null)
continue;
foreach (SPUser user in byNameNoThrow.Users)
if (!string.IsNullOrEmpty(user.Email))
try
func(new MailAddress(user.Email, (user.Name != null) ? user.Name : "", Encoding.UTF8));
continue;
catch (FormatException)
continue;
continue;
I.e. at first it tries to resolve user using ResolvePrincipal() method. If it is not resolved (info == null) email is not sent. But if it is - it first checks that email is not empty. If it is not - it adds email to the MailMessage.To recipients list. If
it is empty it checks whether the principal info represents Sharepoint group. If yes - it will send email to each member of the group.
So it may be so that you try to send email to external user (which is not supported according to the code above), or resolved principal doesn't have email specified.
Blog - http://sadomovalex.blogspot.com
CAML via C# - http://camlex.codeplex.com -
How can i send xml file with a http servlet request
Hi
Please tell me how can I send a xml file into http servlet request.
I have a servlet(action) java file.From this servlet I have generate a xml file. Now I need to send that xml file to another servlet with http servlet request object.
Dave.When you say you have generated an XML file what do you mean?
Is it a file stored on disk? Then pass the file path as a string to the servlet.
Is it stored in memory as an object? The pass a reference to the object to the servlet.
Or are you asking how to communicate between servlets?
Look in the JavaDocs for the RequestDispatcher class. You can use this class to forward the request to another servlet. Data can be passes using the RequestDispatcher by storing it as attributes using the request getAttribute and setAttribute methods. Also described in the JavaDOcs.
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/RequestDispatcher.html -
How to send a xml to a web service
Hi All
I've generated a xml report that I need to send to a web site that I could imagine have a web service to receive the report.
The question is: how should I send my xml file ??
I've tried to find docs about it but there are a lot of complex examples and I need to do just this simple job...
Any idea, example or help will be appreciated...
Thanks in advance
<jl>You can do anything as simple as a socket all the way up to using a web services protocol like SOAP.
- Saish
"My karma ran over your dogma." - Anon -
How to send multiple objects from Client to Server
Hi
I have a simple Client - Server architecture. I am trying to send 5 objects from Client to the Server which the server would operate on.
In the past I've used PrintWriter to pass Strings from Client to Server but now when I am dealing with multiple Objects and PrintWriter not allowing sending of Arrays or ArrayList, how can I send these from the Client to the Server? What would be a good writer to use for this purpose?
Thanks!Thanks, I am looking into ObjectOutputStream but from the API it appears I can only send 1 object at a time. I need to send 5 objects per transaction and then send the next group of 5 objects for another transaction.
Could you clarify some more on how to put these objects together as a single Object perhaps?
Thanks -
Send XML to client: message box
Hi,
In a BPM workflow I'm putting together, I need to open a message box for information
(title, message, OK button). In the documentation, I found that I should send
an XML document to a client that looks like this:
<message-box title="title" style="information" options="ok">
<actionid>"1013679664318"</actionid>
</message-box>
Which I did: I added a "Send XML to client" action in the "True" part of a decision
node with a message-box element and its attributes, and actionid as a nested element.
When I trigger the workflow, it goes through all the expected steps but the window
does not pop up at all. I could not find the reason why anywhere. So has anyone
experienced the same problem ? If yes, how did you solve it ?
Cheers,
YannHi Sudhar.
I don't think your workflow will execute the next node before you mark the current
node as done. Conseqently setting the done in the decision box isn't possible.
Giora
"Sudhar" <[email protected]> wrote:
>
After I do the Send XML to Client from the exeucte tab of an action...instead
of
marking the task as done on the call back actions...i try to mark the
same task
as done in the next task after a decision box....it doesnt seem to work?
any ideas? should you always mark a task as done on the same task? -
How to send/receive XML using JSP
Hi,
I'm new to all this JSP/XML stuff so apologies if this is trivial.
I'm trying to send an XML file via HTTP POST using JSP. Anyone know how to do this?
Once the XML has been sent, how do you use JSP to request the XML file? I've figured out how to parse it already.
Also, is it possible to call xsql directly within JSP?
Thanks!I'm trying to send an XML file via HTTP POST using JSP. Anyone know how to do this?The question is, does anybody understand what you mean by this. Let me take a guess. You want to upload an XML file to a server. If this guess is right, then the answer is don't use JSP to do that. JSP is for generating output to be sent to a client. Use a servlet to handle an upload. And you don't need to write it yourself, there are already several file-upload servlets available on the web.
Second guess: you have a POST request that asks your server to send an XML file back to the client. If it's a static XML file you don't need a JSP or a servlet or anything, just let your web server handle it just like any other static file. If it's dynamically generated then there's an answer worth giving, but I doubt that this is your question. But if it is, let us know. -
Jsp worklist in 7.02 - send xml to client
Does the worklist web application in 7.02 support messages with the "Send
XML To Client" action? There appears to be some JSP code related to
displaying message boxes or setting variables (message.jsp,
setvariables.jsp) but I don't see any reference to how it works in the
documentation. If anyone has gotten it to work, I would like to hear about
it.
If it's not supported, I would like to know if and when it will be
supported. If it is supported, I would also like to know where the
documentation is or when it will be documented. The current documentation
for Send XML to Client refers to the deprecated swing task list application.
Thanks, HalA co-worker of mine got the sendxmlclient to work with the worklist web
application. It works the same way it does for the swing tasklist
application, it just wasn't in the documentation that I could find. I must
have missed a step the first time I tried it. Anyway, it appears to work.
Maybe the query.jsp you mention that the docs refer to should actually be
the setvariables.jsp.
Hal
"Alex Thomas" <[email protected]> wrote in message
news:[email protected]..
My guess is that it's not quite there yet. As you say, message.jsp isthere
and the docs(http://e-docs.bea.com/wli/docs70/devclient/intro.htm#1052730)
refer to a query.jsp but it isn't in 7.02. We're currently using the
lightweight client sample for an equivalent mechanism but can't really
recommend this as it's deprecated and disappearing in 8.1
cheers
Alex
On Fri, 28 Mar 2003 18:22:12 -0500, "Hal Deadman" <[email protected]>
wrote:
Does the worklist web application in 7.02 support messages with the "Send
XML To Client" action? There appears to be some JSP code related to
displaying message boxes or setting variables (message.jsp,
setvariables.jsp) but I don't see any reference to how it works in the
documentation. If anyone has gotten it to work, I would like to hear
about
it.
If it's not supported, I would like to know if and when it will be
supported. If it is supported, I would also like to know where the
documentation is or when it will be documented. The current documentation
for Send XML to Client refers to the deprecated swing task listapplication.
>>
Thanks, Hal -
Worklist send-xml-to-client functionality
Hi there
Quick question on wli 8.1. I have made extensive use in the past of the
send xml to client business operation in WLI 7. Is there any sort of
equivalent/how would this be achieved. Does the new worklist actually
support this kind of functionality?
RegardsA co-worker of mine got the sendxmlclient to work with the worklist web
application. It works the same way it does for the swing tasklist
application, it just wasn't in the documentation that I could find. I must
have missed a step the first time I tried it. Anyway, it appears to work.
Maybe the query.jsp you mention that the docs refer to should actually be
the setvariables.jsp.
Hal
"Alex Thomas" <[email protected]> wrote in message
news:[email protected]..
My guess is that it's not quite there yet. As you say, message.jsp isthere
and the docs(http://e-docs.bea.com/wli/docs70/devclient/intro.htm#1052730)
refer to a query.jsp but it isn't in 7.02. We're currently using the
lightweight client sample for an equivalent mechanism but can't really
recommend this as it's deprecated and disappearing in 8.1
cheers
Alex
On Fri, 28 Mar 2003 18:22:12 -0500, "Hal Deadman" <[email protected]>
wrote:
Does the worklist web application in 7.02 support messages with the "Send
XML To Client" action? There appears to be some JSP code related to
displaying message boxes or setting variables (message.jsp,
setvariables.jsp) but I don't see any reference to how it works in the
documentation. If anyone has gotten it to work, I would like to hear
about
it.
If it's not supported, I would like to know if and when it will be
supported. If it is supported, I would also like to know where the
documentation is or when it will be documented. The current documentation
for Send XML to Client refers to the deprecated swing task listapplication.
>>
Thanks, Hal -
How do I send XML to a web service?
I am brand new to Flex. I am trying to write a program that
uses web services to send and receive data. I have gotten it so
that it can receive XML from the web service. However, I also need
to send it, and I am stuck.
I have tried the following code:
<mx:WebService id="MyService"
wsdl="
http://localhost/FlexTest/service1.asmx?WSDL"
useProxy="false"
result="resultHandler(event)">
<!-- Input: XML Document...Output: String -->
<mx:operation
name="HelloPersonAcceptsXmlDocumentReturnsString">
<mx:request>
<personXmlDoc>xmlPerson</personXmlDoc>
</mx:request>
</mx:operation>
<!-- Input: XML Node...Output: String -->
<mx:operation
name="HelloPersonAcceptsXmlNodeReturnsString">
<mx:request>
<personXmlNode>
xmlPerson.Person
</personXmlNode>
</mx:request>
</mx:operation>
<!-- Input: String (XML Format)...Output: String -->
<mx:operation
name="HelloPersonAcceptsXmlStringReturnsString">
<mx:request format="xml">
<personXmlString><p1:Person xmlns:p1="
http://impact-tech.com/schemas/FlexTest"><p1:ID>f1bd45fc-544b-489d-83cf-349d1f9740ec</p1:I D><p1:FirstName>Joe</p1:FirstName><p1:MiddleName>C.</p1:MiddleName><p1:LastName>Blow</p1:L astName><p1:BirthDate>2006-09-11T14:03:04.4755443-04:00</p1:BirthDate><p1:IsMarried>false< /p1:IsMarried><p1:NumChildren>0</p1:NumChildren><p1:NetWorth>100000</p1:NetWorth></p1:Pers on></personXmlString>
<!--<personXmlString>{xmlPerson.toXmlString()}</personXmlString>-->
<!--<personXmlString>{txInput.text}</personXmlString>-->
</mx:request>
</mx:operation>
</mx:WebService>
In the first operation,
"HelloPersonAcceptsXmlDocumentReturnsString", I try to send an XML
object. In the second operation,
"HelloPersonAcceptsXmlNodeReturnsString", I try to send the root
node, xmlPerson.Person. In both cases, what actually gets sent is
literally the text that I put in the <request>node, not the
object that text is referencing. So for the first, "xmlPerson" gets
sent to the target, not the XML doc that it refers to.
In the third operation, I tried three different things, and
two are commented out. I tried to reference the XML object using
the toXmlString() method, but again, it literally sent the text
"xmlPerson.toXmlString()". I tried the curly-brace binding, but
then nothing gets sent to the web service. I also tried building
the actual XML document node by node, with values, but I get an
error from the web service saying it can't be parsed because there
is an illegal character at Line 1, Position1. The only thing which
has worked has been to add an Input Text box, copy-and-paste the
exact same XML structure as I tried to manually build, and then use
binding to the text property of the InputText control. Then it
works fine. But I can't actually do that, it's just for testing.
So my question is how to make a <request> node that is
part of the web service operation that references an object and
sends the value of that object to the web service, not literally
whatever text is typed in that node. I looked at the Web Services
and Data Binding sections of the help, and didn't see any examples
covering this. Everything was far more simplistic with binding to
controls. Can anyone help a newbie, please?I don't understand how this isn't a Flex Builder question,
since it has to do with how Flex Builder interacts with web
services and how objects are used in binding in MXML.
But at any rate, I got this code to work, for future
reference of anyone else looking in this forum:
Declaring a custom class in MXML was key to allow proper
binding:
<CustomClasses:Person id="testPerson" xmlns:local="*"/>
<mx:WebService id="MyService"
wsdl="
http://66.129.123.211/FlexTest/service1.asmx?WSDL"
useProxy="false"
result="resultHandler(event)">
<!-- Input: XML Document...Output: String -->
<mx:operation
name="HelloPersonAcceptsXmlDocumentReturnsString">
<mx:request>
<personXmlDoc>{testPerson.GetXmlDoc()}</personXmlDoc>
</mx:request>
</mx:operation>
</mx:WebService> -
How to develope a XML-RPC client with PL/SQL
Anyone know how to develop a XML-RPC client with PL/SQL?
I've oracle 8i.
Have you some example of code?
Thanks
PaoloSo, you actually want to create the physical directory using JAVA?
Then see:
http://www.oracle-base.com/articles/8i/shell-commands-from-plsql.php
Maybe you are looking for
-
Xorg 1.8 and nvidia drivers 'nvidia-xconfig' NEED tip to fix
[what part of my xorg.conf needs to me moved, and to where?] Hi, I routinely swap between intel, savage, nvidia drivers running my ARCH install off my USB. Ok, so I'm using xorg 1.8 and the intel works though of course the nividia with nvidia-xconfig
-
Why do I lose my hyperlinks when combining pdfs?
Hello, I have a report that was converted from Word into a pdf. It has hyperlinks to other pdf files (appendices) that are in the same folder on my computer. The hyperlinks in both the Word version and pdf version of the report work. Until I combine
-
Reg: Confusion in SMQ1 in XI-BW
Hi Gurus, I am doing File to BW scenario. Most of the times file is picking and reaching succesfully to BW but some times file is picking in XI and not reaching in BW even it was showing in SXMB_MONI But issue and my question is I found nearly 18 mes
-
I purchased a digital copy file from Disney movie club. I entered the activation code and it loaded into Itunes. I can watch the movie through ITunes but I cant get it to sync to my IPhone. What am I doing wrong?
-
IOS 5 OTA: Device query for mac address
Device query for attribute "MAC_ADDRESS_EN0" doesn't return any value on iOS 5. It use to work fine on iOS 4. Does anyone know the new attribute to query mac address on iOS 5. Appreciate any help. Thanks, Juzer.