Chat with Microsoft experts on XML Web Services Interoperability
Chat Title: XML Web Services Interoperability
The promise of XML Web services rests on interoperability and
ubiquity. Open standards and rigorous multi-vendor testing ensure that
a rich community of Web services implementations will proliferate.
Join us in this session with Keith Ballinger and Yann Christensen from
the team that brought you ASP.NET's Web services stack as we discuss
Microsoft's work in XML Web services interoperability.
When: Thursday – February 7th 12:00pm PST (3:00pm ET/8:00pm GMT/5:00am
Tokyo)
Information: http://msdn.microsoft.com/chats/
I'm wondering if it's the "=" and Quote in the parameter that is causing the search to fail to find your record
Try with just the value in the field tag
Wrong?
<ns2:ContactId>='AHMA-VD8RSZ'</ns2:ContactId>
<Id>='AHMA-VD6N8I'</Id>
Correct:
<ns2:ContactId>AHMA-VD8RSZ</ns2:ContactId>
<Id>AHMA-VD6N8I</Id>
Same for Last Name and other parameters
Edited by: Royston Goveia on Dec 6, 2012 1:09 AM
Similar Messages
-
SharePoint SiteMialbox failed with 503 error (AutoDiscover.svc web service call failed)
I followed Technet articles to configure SiteMailBoxes in our environment & exchange sever.
When we created Sitemailbox in a SiteCollection &when we try to open it, it failed with below error.
Site Mailbox
We are having trouble connecting to Exchange Server
The server might be temporarily unavailable. Please check back on this page in a few minutes. If this problem persists, please contact your system administrator.
Correlation ID: bb0fe99c-6f4e-e084-b191-881fbf0fa977, Error Code 10
ULS Log (503 error)
Autodiscover Diagnostics Response Headers: request-id: 95d12ceb-283e-4495-b28b-256503fd097c client-request-id: 742fe69c-ef5a-e084-ca05-6098c759c584 X-CalculatedBETarget: devapwxyz01a.devap.mydomain.com X-FEServer: DEVNAABCD01B
Content-Length: 0 Cache-Control: private Date: Tue, 03 Feb 2015 18:53:40 GMT Set-Cookie: X-BackEndCookie=; expires=Sun, 03-Feb-1985 18:53:40 GMT; path=/autodiscover; secure; HttpOnly Server: Microsoft-IIS/8.5 X-AspNet-Version:
4.0.30319 X-Powered-By: ASP.NET
742fe69c-ef5a-e084-ca05-6098c759c584
if I am correct, X-CalculatedBETarget supposed to be DEVNAABCD01B.devna.mydomain.com but it connected to different domain devapwxyz01a.devap.mydomain.com. Do you guys have any idea on this? (I verified
the same using fiddler, it is failing right at autodiscover.svc call.)
I wrote a powershell script to connect autodiscover service in sharepoint server & this web service call able connect right server X-CalculatedBETarget. It gave the expected response.
I am not sure why SharePoint webservice call (X-CalculatedBETarget) is going to different server?
let me know if you guys have any ideas.
Thanks.Thanks for the Response Raj.
I already followed the same instructions in the Links.
When SharePoint Autodisover.svc webservice send a request to Exchange server & Exchange server redirecting that request to different server, this is the problem i am facing right now.
X-CalculatedBETarget
supposed to be DEVNAABCD01B.devna.mydomain.com but it connected to different domain devapwxyz01a.devap.mydomain.com.
Let me know if you have any suggestions? -
Designing and Running CR against XML Web Service
<p>I created a simple XML web service with one method that returns a dataset. This runs on my Windows 2003 Server.</p><p>The service(.asmx) is called "Applicants". My computer name is aricciardi-2k3s. It runs on port 89 .When I browse to <a href="http://aricciardi-2k3s:89/Applicants.asmx">http://aricciardi-2k3s:89/Applicants.asmx</a>, I am prompted to invoke the webservice and I can run it and everything is great. Further, if I browse to <a href="http://aricciardi-2k3s:89/Applicants.asmx?wsdl">http://aricciardi-2k3s:89/Applicants.asmx?wsdl</a> I get the wsdl info. </p><p>Now I want to design and run a Crystal Report 11 SR 2 against my web service. I choose New Report, for Data I choose XML, then "Use Web Data Source" hit next, then choose "HTTP WSDL URL" I enter <a href="http://aricciardi-2k3s:89/Applicants.asmx?wsdl">http://aricciardi-2k3s:89/Applicants.asmx?wsdl</a>, hit Next, I leave HTTP username and HTTP password blank. Then I see the Services, Ports and Methods screen. Services: Applicants, Ports: ApplicantsSoap, Methods: GetApplicants</p><p>When I click Finish, I get Logon Failed, Details, Schema file is invalid. error:Element <a href="mailto:Schema@htttp://www.w3.or/2001XMLSchemal">Schema@htttp://www.w3.or/2001XMLSchemal</a> not found</p><font size="2"><p>How can I get this to work? I can return anything necessary from the web service.</p><p>Please help. You will make me a hero, and I'll will be in debt to you.</p><p>Thanks.</p><p>Anthony Ricciardi </p><p>The web method for my web service is below </p><p><WebMethod()> _</p></font><font size="2" color="#0000ff">Public</font><font size="2"> </font><font size="2" color="#0000ff">Function</font><font size="2"> GetApplicants() </font><font size="2" color="#0000ff">As</font><font size="2"> DataSet</font><font size="2"> <font size="2" color="#0000ff">Dim</font><font size="2"> DS </font><font size="2" color="#0000ff">As</font><font size="2"> </font><font size="2" color="#0000ff">New</font><font size="2"> DataSet</font><font size="2"> <p><font size="2" color="#0000ff">Try</font></p></font></font><font size="2" color="#0000ff">Dim</font><font size="2"> dt </font><font size="2" color="#0000ff">As</font><font size="2"> </font><font size="2" color="#0000ff">New</font><font size="2"> DataTable(</font><font size="2" color="#800000">"Applicants"</font><font size="2">)</font><font size="2"> <p>dt.Columns.Add(<font size="2" color="#800000">"AppID"</font><font size="2">)dt.Columns.Add(</font></p></font><font size="2" color="#800000">"Name"</font><font size="2">)</font><font size="2"> </font><font size="2" color="#0000ff">Dim</font><font size="2"> dr </font><font size="2" color="#0000ff">As</font><font size="2"> DataRow</font><font size="2"> <p>dr = dt.NewRow()</p>dr.Item(</font><font size="2" color="#800000">"AppID"</font><font size="2">) = 1000</font><font size="2"> <p>dr.Item(<font size="2" color="#800000">"Name"</font><font size="2">) = </font><font size="2" color="#800000">"First Applicant"</font></p></font><font size="2"><p>dt.Rows.Add(dr)</p><p>dr = <font size="2" color="#0000ff">Nothing</font></p></font><font size="2"><p>dr = dt.NewRow()</p>dr.Item(</font><font size="2" color="#800000">"AppID"</font><font size="2">) = 2000</font><font size="2"> <p>dr.Item(<font size="2" color="#800000">"Name"</font><font size="2">) = </font><font size="2" color="#800000">"Second Applicant"</font></p></font><font size="2"><p>dt.Rows.Add(dr)</p>dr = </font><font size="2" color="#0000ff">Nothing</font><font size="2" color="#0000ff"> </font><font size="2"><p>DS.Tables.Add(dt)</p></font><font size="2" color="#0000ff">Return</font><font size="2"> DS</font><font size="2"> </font><font size="2" color="#0000ff">Catch</font><font size="2"> ex </font><font size="2" color="#0000ff">As</font><font size="2"> Exception</font><font size="2" color="#0000ff">Dim</font><font size="2"> x </font><font size="2" color="#0000ff">As</font><font size="2"> </font><font size="2" color="#0000ff">String</font><font size="2"> = ex.Message</font><font size="2"> <p><font size="2" color="#0000ff">End</font><font size="2"> </font><font size="2" color="#0000ff">Try</font></p></font><font size="2"><p><font size="2" color="#0000ff">End</font><font size="2"> </font><font size="2" color="#0000ff">Function</font></p></font>
<p>I got some feed back from support that this driver doesn't work with .NET datasets. I would suggest that in your webservice method that you just return an arrary of regular objects that contain the data you need. That should work with this driver I believe. I would try it out but I just messed up my Crystal Reports and I need to re-install it.</p><p>Here's the URL to a white paper that talks about connecting to this driver. </p><p>http://support.businessobjects.com/communityCS/TechnicalPapers/cr_xi_native_xml_driver.pdf <br /></p><p>Rob Horne<br /><a href="/blog/10">Rob's blog - http://diamond.businessobjects.com/blog/10</a></p>
-
Crystal Reports 2008 XML & Web Services
Hi Experts,
I am using Crystal reports Basic 2008 for SAP Business One Version 12.1.3.1028
I just wanted to use a web services in my report.
My data source connectivity does not list xml & web services.
Can anyone advise if I am able to get XML and web services connectivity setup.
thanks
TonyHi Tony,
Post your thread to the reporting forum.
[Reporting and Printing;
Regards,
Rakesh N -
Assistance required for J2EE/XML/Web Services development project in Bangal
Hello,
I work for a US based entrepreneur. who holds a Doctorate in Computer Science and MBA from MIT and we are setting up our office in Bangalore. We are on the look out for Qualified and Experienced J2EE professionals to assist in the implementation of our projects. Some of the projects that we are working for will be very interesting and will require highly skilled and experienced Software professionals who have working experience on J2EE/XML/Web Services
We are looking for Experienced Candidates experienced in J2EE and have many positions open for experienced candidates and the Positions includes Technical team leaders, Senior Software developers, etc. The ideal candidates will be those who have passion for creating new applications using cutting edge technologies.
We are also open to Experienced to candidates working for us on a part time basis for a fixed number of Hours per day (say about 3 to 4 Hours per day) and over the weekends. Please pass this on to any of your friends who may be interested in this opportunity.
Anyone interested can respond to this message and please send me your mobile number or e mail address and I will get in touch with you.
Regards
RajHi Raj, Wrong Initiative.
*=================> Please don't spoil the forum. <=================*
I am sorry if you find this a bit rude or like that, but this a technical discussion forum not a job portal where you should find candidates for your organization.
rajhyd wrote:
Anyone interested can respond to this message and please send me your mobile number or e mail address and I will get in touch with you.I think instead of this you should make your email address visible in your current profile, so that people can reply you on that instead of expressing their interest here.
*All the best for your new venture,
typurohit* (Tejas Purohit) -
Support for XML / Web Service Data Source?
<p>Do you know if and when Crystal Reports for Eclipse will support using the XML / Web Service data source? It appears that only JDBC and Java Result Sets are currently supported. I am using:</p><p>com.businessobjects.integration.eclipse.library_1.0.0.v671 </p><p>com.businessobjects.sdks.jrc.11.8.0_11.8.1.v671 </p><p>Thank you! </p>
<p>Ok, I copied the JARs (such as CRDBXMLServer.jar) from the JRC SDK (from Eclipse all-in-one) onto the Tomcat classpath and got rid of my previous problem. I now get the stack trace below. I also can not find crdb_*.dll files (such as crdb_xml.dll) anywhere on my system other than the service pack 2 rollback directories. My guess is I should be downloading and installing something else -- is this true? </p><p>10 Jan 2007 13:22:36 [http-8080-Processor23] DEBUG com.crystaldecisions.reports.reportdefinition.datainterface - Failed to open connection (Connection:<databaseType=XML><serverName=http://dopey/devicedirectory/2006-06-25/DeviceDirectory?WSDL DeviceDirectory DeviceDirectoryPort getDevices><state=closed><databaseDriverName=crdb_xml.dll>).<br />com.crystaldecisions.reports.queryengine.am: Error loading database connector. The class 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader' could not be accessed.<br /> at com.crystaldecisions.reports.queryengine.ax.am(Unknown Source)<br /> at com.crystaldecisions.reports.queryengine.ax.new(Unknown Source)<br /> at com.crystaldecisions.reports.queryengine.ax.byte(Unknown Source)<br /> at com.crystaldecisions.reports.reportdefinition.datainterface.a.a(Unknown Source)<br /> at com.crystaldecisions.reports.reportdefinition.datainterface.a.a(Unknown Source)<br /> at com.crystaldecisions.reports.reportdefinition.datainterface.a.a(Unknown Source)<br /> at com.crystaldecisions.reports.reportdefinition.datainterface.a.a(Unknown Source)<br /> at com.crystaldecisions.reports.reportdefinition.datainterface.g.a(Unknown Source)<br /> at com.businessobjects.reports.sdk.b.b.byte(Unknown Source)<br /> at com.businessobjects.reports.sdk.b.b.a(Unknown Source)<br /> at com.businessobjects.reports.sdk.b.b.byte(Unknown Source)<br /> at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)<br /> at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)<br /> at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(Unknown Source)<br /> at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getPage(Unknown Source)<br /> at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getPage(Unknown Source)<br /> at com.crystaldecisions.report.web.event.ac.a(Unknown Source)<br /> at com.crystaldecisions.report.web.event.ac.a(Unknown Source)<br /> at com.crystaldecisions.report.web.event.b2.a(Unknown Source)<br /> at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)<br /> at com.crystaldecisions.report.web.event.av.a(Unknown Source)<br /> at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)<br /> at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)<br /> at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)<br /> at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)<br /> at com.crystaldecisions.report.web.viewer.taglib.ServerControlTag.doEndTag(Unknown Source)<br /> at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown Source)<br /> at org.apache.jsp.stateReport_002dviewer_jsp._jspx_meth_crviewer_viewer_0(stateReport_002dviewer_jsp.java:108)<br /> at org.apache.jsp.stateReport_002dviewer_jsp._jspService(stateReport_002dviewer_jsp.java:61)<br /> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)<br /> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br /> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)<br /> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)<br /> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)<br /> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br /> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<br /> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)<br /> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)<br /> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)<br /> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)<br /> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)<br /> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)<br /> at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)<br /> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)<br /> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)<br /> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)<br /> at
java.lang.Thread.run(Unknown Source)<br />Caused by: java.lang.reflect.InvocationTargetException<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br /> at java.lang.reflect.Method.invoke(Unknown Source)<br /> ... 53 more<br />Caused by: java.lang.NoClassDefFoundError: OCA/OCAdbdll/DbDLLOperations<br /> at java.lang.ClassLoader.defineClass1(Native Method)<br /> at java.lang.ClassLoader.defineClass(Unknown Source)<br /> at java.security.SecureClassLoader.defineClass(Unknown Source)<br /> at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815)<br /> at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:869)<br /> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322)<br /> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)<br /> at java.lang.ClassLoader.loadClassInternal(Unknown Source)<br /> at com.crystaldecisions.reports.queryengine.driverImpl.a.<init>(Unknown Source)<br /> at com.crystaldecisions.reports.queryengine.driverImpl.a.eE(Unknown Source)<br /> at com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader.loadDriver(Unknown Source)<br /> ... 57 more<br /><br /> </p> -
How to Output Nodes from XML web service to a FLV?
Hi
I've used AS3 to query a web service and obtain the resulting XML. I need to parse the result down to just a few nodes for a given location. I can tackle that separately. I am wondering how I output the parsed XML to a flash video file (.flx)? The video has place holders for the XML node values. What do I need to do to place the XML results in the video?
Thanks,
SidAndrei1 wrote:
What is a content of XML nodes? I am not sure what you mean by "inserting nodes". Do you mean that you want to display some information over the video?
And yes, encoders do take XMLs to inject metadata into video. But this is metadata only.
OSML = Open Source Media Framework:
http://www.opensourcemediaframework.com/
By inserting nodes, I mean that the XML web service returns data for each city, which needs to be parsed to just high temp, low temp and current condition. Those 3 values needed to be dispalyed over, or woven into, the video at each city location. My thought was that AS3 could somehow recognize the 3 placeholders for each city and insert the high temp, low temp and condition icon into each placeholder. However, when I import the FLV file into Flash, there are no elements into which I can infuse this data. -
Post Author: amr_foci
CA Forum: JAVA
may be its not much BO related issue
but for the java developers here, i want to create an easy and small xml web service which return a few selected records from oracle DB, using (java, Tomcat)
i want to use it instead of the "Query As a web Service",, any one got my idea and could help me to start?
i know very good java, but not professional
thank you allHello!
The best way to develop web service is using AXIS framework.
http://ws.apache.org/axis/ -
How to integrate Microsoft and SAP using Web Services?
Hi All
How to integrate Microsoft and SAP using Web Services? If any one has document please send it to me. My id is [email protected]... Please
Help me
Best Regards
Ravi ShankarHi Ravi,
This is for Customizing Email and Other Web Services.
Create addresses
The address maintenance of R/3 users is carried out either via the R/3 User Maintenance (Transaction SU01) or the Private office settings (Transaction SO12):
Address --> Other communication...
Selection of the required communication service.
Enter address.
Copy or save.
b) Configuration of SAPconnect (Transaction SCOT)
Set communication method
4.0 + 4.5: Goto --> Customizing --> Communication methods
as of 4.6: Settings --> Communication methods
Set the method of the required communication service to the value 'SAPCONNECT' and save the setting.
Customized the same for Internet mailing.
C) If you want to Transfer Table Structure Values from SAP R/3 to Web Services then
1. Create BAPI and Transfer whichever things you want.(Note: The Structure
of BAPI should be similar to Web Structure (Datatypes).
2. Create a BDC and Schedule it in the Background.
Hope it helps you, Awaiting for the Reward Points.
Thanks
Subrato Chowdhury -
Designer beginner's question: How to populate form with XML web service output?
sorry, here is yet another Adobe Designer beginners question: <br /><br />My form uses a webservice data connection which returns <br />an xml-string like this: <br /><br /><?xml version="1.0" encoding="utf-16"?> <br /><CurrentWeather> <br /> <Location>Sion, Switzerland (LSGS) 46-13N 007-20E 481M</Location> <br /> <Time>Apr 26, 2007 - 09:50 AM EDT / 2007.04.26 1350 UTC</Time> <br /> <Wind> from the WSW (240 degrees) at 15 MPH (13 KT):0</Wind> <br /> <Visibility> greater than 7 mile(s):0</Visibility> <br /> <SkyConditions> partly cloudy</SkyConditions> <br /> <Temperature> 80 F (27 C)</Temperature> <br /> <DewPoint> 46 F (8 C) </DewPoint> <br /> <RelativeHumidity> 30%</RelativeHumidity> <br /> <Pressure> 29.88 in. Hg (1012 hPa)</Pressure> <br /> <Status>Success</Status> <br /></CurrentWeather> <br /><br />What is the simplest and recommended way to extract the <br />element fields to my form? <br /><br />Thank you very much an kind regards, <br />Hans Grund
The question is still unanswered!
Let me give some details and break up the problem
in more specific questions:
- In Designer 8.1 I click new data binding --> wsdl -->
http://www.webservicex.net/globalweather.asmx?wsdl
A message box comes up and says "cannot load wsdl file"
==> 1. Question:
Why maybe refuses Designer to load the http-wsdl,
although this option is explicitly allowed?
- When I save the wsdl to a file, Designer loads it
without any problems. The web service uses two input parameters
(CountryName and CityName) and returns an xml-string GetWeatherResult)
like the one in my first posting. I drag these fields from the binding view to my form, and it runs ok!
- THE PROBLEM IS, THAT I NEET TO EXTRACT THE ELEMENT FIELDS
FROM THE RESULT XML-STRING!
==> 2. Question:
How to extract xml element fields from wsdl output into a form?
- I tried with eclipse and XmlSpy to build a modified wsdl file
with structured output definition, so that the specific element fields
show up in the data binding view and are usable to my form,
and the modified wsdl maps consistently to the web service result string.
So far without success: In the PDF -preview or Reader-
when the wsdl-binding is executed and the web service output
should show up in the result fields, just nothing happens.
==> 3. Question:
Can this strategy to provide a "modified wsdl" possibly succeed,
and how?
==> 4. Question:
Is is possible -and how?- to check whether an xml string
is valid as web service output against the wsdl-definition?
==> 5. Question:
How to debug a web service connection with Designer?
- Finally I tried to find a way to load the result xml-string
into a local var in the script editor and parse it, much like:
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.load(DataSet.MyForm.GetWeatherResult.rawValue);
==> 6. Question:
Is it possible -and how?- to use a framework like dotnet?
How to utilize SAX or DOM in Designer?
Many thanks and appreciations for your help!! -
Fill hidden field with xml - Web service call
Hi everyone,
I have a developed a web service, my web service method expects an xml string.
I have a new data connection, which is my wsdl file...
Now my challenge is how do I populate that field with my form's xml,so that my my method can manupulate it.
Secondly, I would like the same button that calls my web service to email the form once the web service has been called, email the form as PDF.
Will really appreciate your assistance.
AceYou can use the below command to populate a field with the form's XML.
FieldName.rawValue = xfa.data.saveXML("pretty");
To execute the webservice and then send an email,
1. First place Execute button binding to the Webservice and make it either invisible/ hidden
2. Place a normal button on the form and in the click event write code to call the webservice and then send the email.
//Call the webservice button click event
WebserviceExecuteButton.execEvent("click");
//Send an email
event.target.submitForm({cURL:"mailto:"+ strToAddress + "?subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF",cCharset:"utf-8"});
Replace the names with the variables in your form in the above line.
Thanks
Srini -
Integrating With contentType='text/xml' Web Service
I have a web service that I am attempting to call from a Flex
UI. However, the only acceptable ContentType of the web service is
“text/xml”. Flex only enumerates the values,
"application/xml" or "application/x-www-form-urlencoded" for the
contentType property of the HTTPService object.
Are there any workarounds to make this call successfully?
Example code:
<mx:HTTPService url="
http://localhost/wsman"
method="post" id="wsman" result="ProcResult(event)"
fault="ProcFault(event)">
Options Available:
contentType="application/xml"
contentType="application/x-www-form-urlencoded"Forgot to add the code for poem.xsl
poem.xsl
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="poem">
<html>
<head>
<title><xsl:value-of select="title"/></title>
</head>
<body>
<xsl:apply-templates select="title"/>
<xsl:apply-templates select="author"/>
<xsl:apply-templates select="stanza"/>
<xsl:apply-templates select="date"/>
</body>
</html>
</xsl:template>
<xsl:template match="title">
<div align="center"><h1><xsl:value-of select="."/></h1></div>
</xsl:template>
<xsl:template match="author">
<div align="center"><h2>By <xsl:value-of select="."/></h2></div>
</xsl:template>
<xsl:template match="stanza">
<p><xsl:apply-templates select="line"/></p>
</xsl:template>
<xsl:template match="line">
<xsl:if test="position() mod 2 = 0">  </xsl:if>
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="date">
<p><i><xsl:value-of select="."/></i></p>
</xsl:template>
</xsl:stylesheet>
Thanks,
Kapil -
Connect to SharePoint web service using the XML / Web Service connector
Hi experts,
I am currently trying to display my SharePoint list in Crystal Report. Therefore my plan is to use a SharePoint web service to get the data and paste them to the Crystal Report.
Is it possible to use the "XML and Web services" connector of the Crystal Reports database expert?
When I enter the web service URL, for instance:
https://[url]/_vti_bin/lists.asmx?wsdl
and click next... I have to enter the web service credentials.
On the next page I have to enter Service, Port and Method.
Do I have to enter the service URL again here?
What If, there is no port? Can I leave that field empty?
I know the methods, but where can I add the mandatory parameters?
Thanks for any helps and comments!
SebastianHi Ananth,
thank you, but this document does not help at all.
We are using Crystal Reports 2008 SP2.
We want to use the Web Service Connector.
What I need is more informationen about the Web service connect. For example - the connection in Microsoft InfoPath is much easier - there I don't have to enter a port and can choose the methods from a list.
Is it possible to use the Crystal web service connector for MS SharePoint Webservices?
Or must I use the Crystal SDK to carry out a connection?
Best regards,
Sebastian -
Problem with file receiving through abap web service
Hi experts,
I need to created web service for import file from .NET application into SAP.
ABAP function expect hexadecimal string (same as GUI_UPLOAD / GUI_DOWNLOAD) but hexadecimal string from C# is too long (double longer), and I have no idea how to convert it. Also there is a problem with code page...
Is there some better way to do this? Any idea is welcome!Hi Nemanja,
Please bear in mind that your SAP system is based on UTF-8 encoding. Since you have the xstring length doubled, most probably your sender system uses UTF-16 encoding. So what you need to do is change the encoding used by your .NET application when sending the data to SAP.
Alternatively, you can try using XSL Transformations in ABAP to have the input data converted from UTF-16-encoded xstring to ABAP structures. You can find a little example in this thread: ABAP data to XML conv with UTF-8 encoding and custom namespace. The point is to start your XSLT with the following: <?xml version="1.0" encoding="utf-16"?>.
Hope this helps,
Greg -
Result:
<wsdl:definitions targetNamespace="
http://tempuri.org/" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="
http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="
http://tempuri.org/" xmlns:s="
http://www.w3.org/2001/XMLSchema"
xmlns:soap12="
http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/"
xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="
http://tempuri.org/">
<s:element name="Get_xplan_tpu">
<s:complexType/>
</s:element>
<s:element name="Get_xplan_tpuResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="Get_xplan_tpuResult">
<s:complexType>
<s:sequence>
<s:element ref="s:schema"/>
<s:any/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Get_xplan_msc">
<s:complexType/>
etc....
<?xml version="1.0" encoding="utf-8" ?>
- <DataSet xmlns="
http://tempuri.org/">
+ <xs:schema id="NewDataSet" xmlns="" xmlns:xs="
http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xs:element name="NewDataSet" msdata:IsDataSet="true"
msdata:UseCurrentLocale="true">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="xplan_MSC_Planning">
- <xs:complexType>
- <xs:sequence>
<xs:element name="MSC" type="xs:string" minOccurs="0"
/>
<xs:element name="Date" type="xs:dateTime" minOccurs="0"
/>
<xs:element name="Traffic" type="xs:decimal"
minOccurs="0" />
<xs:element name="Radios" type="xs:int" minOccurs="0"
/>
<xs:element name="InstalledCapacity" type="xs:int"
minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
- <diffgr:diffgram
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
- <NewDataSet xmlns="">
- <xplan_MSC_Planning diffgr:id="xplan_MSC_Planning1"
msdata:rowOrder="0">
<MSC>NYGMSC01</MSC>
<Date>2007-06-24T00:00:00-07:00</Date>
<Traffic>12730.8400</Traffic>
<Radios>676</Radios>
<InstalledCapacity>12342</InstalledCapacity>
</xplan_MSC_Planning>
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute"
backgroundColor="#f6f6f6"
backgroundGradientColors="[#f6f6f6, #bbbbbb]"
creationComplete="myServiceXML.send()">
<!-- Script -->
<!-- Our result handler functions get any value returned
from the server -->
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
// you import the event classes for strong typing
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
public function handleResultXML(event:ResultEvent):void {
// the result object is your xml root
lastResultValue.text = "Result:\n" + event.result;
// you get the row nodes of your result object
http://localhost:1343/***/DataService.asmx?op=Get_xplan_msc
// the data of the dataprovider populates the component
http://www.flexcapacitor.com/examples/php/datagrid_xml.php
myDataGrid.dataProvider = event.result.row;
// this function is called when you get an error from the
server
http://localhost:1343/***/DataService.asmx?wsdl
public function handleFault(event:FaultEvent):void {
lastResultValue.text = "Fault: " + event.fault.faultDetail;
//trace(myServiceXML.toXMLString());
// var myService:XML = XML(event.result);
//trace(myService.toXMLString());
]]>
</mx:Script>
<!-- Data Communications -->
<!-- The url is the page you post to -->
<!-- In the request object you add your name and value
pairs -->
<!-- The curly brackets surrounding "username.text" get
the value of username.text -->
<!-- Note: The curly brackets are also used for
databinding where supported -->
<!-- Note: We set the resultFormat to E4X to
automatically convert your return string to an XML object with E4X
support -->
<mx:HTTPService id="myServiceXML" url="
http://localhost:1343/***/DataService.asmx?wsdl"
method="POST" result="handleResultXML(event)"
fault="handleFault(event)"
useProxy="false" resultFormat="e4x">
</mx:HTTPService>
<!-- Layout -->
<mx:Label x="10" y="10" text="Populate DataGrid with XML"
fontSize="20" fontWeight="bold"/>
<mx:HRule x="10" y="49" width="80%"/>
<mx:Button id="submit0" x="10" y="73" label="Get XML"
click="myServiceXML.send()"/>
<mx:Label x="10" y="228" text="Result"/>
<mx:DataGrid id="myDataGrid" x="10" y="114" width="611"
height="106" dataProvider="{myServiceXML.lastResult.DataSet}">
<mx:columns>
<mx:DataGridColumn headerText="xplan_MSC_Planning"
dataField="Traffic"/>
<mx:DataGridColumn headerText="MSC" dataField="MSC"/>
</mx:columns>
</mx:DataGrid>
<mx:TextArea x="10" y="244" width="611" height="400"
id="lastResultValue"/>
</mx:Application>I haven't been able to see the results from my web service.
I'm seeing this error.
It might be an internal security issue...I'm not sure
why...any help is greatly
appreciated.
David
- <s:element name="Get_xplan_msc">
<s:complexType />
</s:element>
- <s:element name="Get_xplan_mscResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1"
name="Get_xplan_mscResult">
- <s:complexType>
- <s:sequence>
<s:element ref="s:schema" />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
[WSDLError faultString="Element
http://tempuri.org/:Get_xplan_mscResponse
not resolvable" faultCode="WSDL.BadElement" faultDetail="null"]
at mx.rpc.soap::WSDLParser/
http://www.adobe.com/2006/flex/mx/internal::parseMessage()
at mx.rpc.soap::WSDLOperation/parseMessages()
at mx.rpc.soap::Operation/
http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
at mx.rpc.soap::Operation/
http://www.adobe.com/2006/flex/mx/internal::invokeAllPending()
at mx.rpc.soap::WebService/::unEnqueueCalls()
at mx.rpc.soap::WebService/
http://www.adobe.com/2006/flex/mx/internal::wsdlHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc.soap::WSDLParser/dispatchEvent()
at mx.rpc.soap::WSDLParser/::parseCompleted()
at mx.rpc.soap::WSDLParser/
http://www.adobe.com/2006/flex/mx/internal::httpResultHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at ::DirectHTTPMessageResponder/completeHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute"
backgroundColor="#f6f6f6"
backgroundGradientColors="[#f6f6f6, #bbbbbb]"
creationComplete="getXplan_MSC()">
<!-- Script -->
<!-- Our result handler functions get any value returned
from the server -->
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
// you import the event classes for strong typing
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.controls.dataGridClasses.DataGridColumn;
import mx.managers.CursorManager;
import mx.controls.Alert;
default xml namespace = "
http://localhost:1343";
//necessary to access the xml elements easily
[Bindable]private var _xmlResult:XML; //holds the result xml
[Bindable]private var _xlDayData:XMLList; //dataProvider for
the day weather dataGrid
[Bindable]private var _sPlace:String;
/** invokes the web service operation to get the weather */
private function getXplan_MSC():void
CursorManager.setBusyCursor();
WS.Get_xplan_msc.send();
//lastResultValue.text = "Result:\n" +
event.result.Get_xplan_msc;
/** called by the WebService result event. Sets the
dataProviders as necessary */
private function onResult(oEvent:ResultEvent):void
_xmlResult = XML(oEvent.result);
//var xmlResultNode:XML = _xmlResult.Get_xplan_mscResult[0];
// var xmlDetailsNode:XML = xmlResultNode.Details[0];
//outputInfo.text = xmlDetailsNode.toXMLString();
//outputInfo.text = _xlDayData.text();
// outputInfo.text = _xmlResult.toXMLString();
// outputInfo.text = xmlResultNode.MSC.text();// + ", " +
xmlResultNode.StateCode.text();
// _xlDayData =
xmlDetailsNode.toXMLString();//Get_xplan_mscResult[0];
outputInfo.text = _xmlResult.text();
CursorManager.removeBusyCursor();
}//onResult
/** labelFunction for DataGrid. It seems that the namespace
on the xml makes
* using the DataGridColumn dataField not work. At least I
couldn't get it to work. */
public function handleResultXML(event:ResultEvent):void {
// the result object is your xml root
lastResultValue.text = "Result:\n" +
event.result.Get_xplan_msc;
// you get the row nodes of your result object
http://localhost:1343/***/DataService.asmx?op=Get_xplan_msc
// the data of the dataprovider populates the component
http://www.flexcapacitor.com/examples/php/datagrid_xml.php
//myDataGrid.dataProvider = event.result.row[0];
// this function is called when you get an error from the
server
http://localhost:1343/***/DataService.asmx?wsdl
public function handleFault(event:FaultEvent):void {
lastResultValue.text = "Fault: " + event.fault.faultDetail;
lastResultValue.text = "Fault: " + event.fault.faultDetail;
//trace(myServiceXML.toXMLString());
// var myService:XML = XML(event.result);
//trace(myService.toXMLString());
]]>
</mx:Script>
<!-- Data Communications -->
<!-- The url is the page you post to -->
<!-- In the request object you add your name and value
pairs -->
<!-- The curly brackets surrounding "username.text" get
the value of username.text -->
<!-- Note: The curly brackets are also used for
databinding where supported -->
<mx:WebService id="WS" wsdl="
http://localhost:1343/***/DataService.asmx?wsdl">
<mx:operation name="Get_xplan_msc" resultFormat="e4x"
/>
</mx:WebService>
<!-- Layout -->
<mx:Label x="10" y="10" text="Populate Chart with XML"
fontSize="20" fontWeight="bold"/>
<mx:HRule x="10" y="49" width="80%"/>
<mx:Button id="submit0" x="139" y="199" label="Get XML"
click="getXplan_MSC()"/>
<mx:Label x="10" y="228" text="Result"/>
<mx:TextArea x="10" y="244" width="333" height="400"
id="lastResultValue"/>
<mx:TextArea x="377" width="354" height="400"
id="outputInfo" y="244"/>
<!--
<mx:ColumnChart x="243" y="80" id="columnchart1"
width="293" height="115" dataProvider="">
<mx:series>
<mx:ColumnSeries displayName="Date" yField="Date"/>
<mx:ColumnSeries displayName="MSC" yField="MSC"/>
<mx:ColumnSeries displayName="Traffic"
yField="Traffic"/>
<mx:ColumnSeries displayName="Radios"
yField="Radios"/>
</mx:series>
</mx:ColumnChart>
<mx:Legend dataProvider="{columnchart1}" x="108"
y="100"/>
-->
</mx:Application>
Maybe you are looking for
-
Iweb and frames,want to create a link to open outside the frame set
Iweb is using Frames and I need to create a link that opens outside the frame set. Can this be done? IMAC Mac OS X (10.3.9)
-
Tax code cd not assigned tax jurisdiction code in00
hi gurus, while i m making a p.o. in me21n on invoice tab page the following error is coming tax code cd not assigned to tax jurisdiction code in00 i have trouble shooted all the possibl elelemnts that could result in such case i have already as
-
Mozilla is awsome, but there comes often times such as now, DivX software asked me if i wanted to make BING my default home page. I of course said no. Well it set it to that anyways in firefox. Gee, thanks Divix and thank you microsoft for joining th
-
HT1212 how do i open a passcode that i forgot
how do i open a passcode i forgot?
-
Where is Microsoft.Live.dll?
I've downloaded the Live SDK for Windows and extracted all the files from the zip, but none of them is the Microsoft.Live.dll, which I need to reference in order to build my app. The only source I've been able to find is a 3rd party, non-Microsoft we