HTML encoding of XML tags
Hi ,
I am using openSAML and passing an XML document as a string to the SAMLAttribute.
But when i see in the logs, the XML tags like "<" , ">" are being displayed as < and >. I don't want this HTML encoding to happen ... I don't know why this is happening ?
Please advise. Yours help is greatly appreciated.
Thanks in advance.
I'm not sure but I think you need to have double quotes.
""<"" "">""
sandyR
Similar Messages
-
Insert HTML Page into XML CDATA Tag
Hi Guy
I have a very big problem.
I create a little web site and I use XSL + XML to produce output.Now I
want to add a part of html page into xml tag to use a custom page section.
But i find a problme,
see the example :
I use this xml :
<resources>
<html><![CDATA[<B>Hello World</B>]]></html>
</resources>
trasform xml with xsl page
and my output into html browser is (<);B(>);Hello World(<);/B(>);(please remove the bracket( ) while reading the text to understand my problem)
my BOLD html tag is not parse by browser because xslt parser trasform
my special tag into other tag.
I want output like this:
<b>Hello World</b>
But it's coming like (<);B(>);Hello World(<);/B(>); (please remove the bracket( ) while reading the text to understand my problem)
Can you help me ?
this is my trasformation function :
private Transformer getXSLTransformer (xslFile) throws
XSLTransformerConfigurationException {
try {
Transformer transformer = null;
tFactory = TransformerFactory.newInstance();
transformer = tFactory.newTransformer(new
StreamSource(xslFile)); // load xslFile from disk
} catch (TransformerConfigurationException tce) {
throw new XSLTransformerConfigurationException(tce.getMessage());
return transformer;
public String myTrasform(String xml,String xslFile) throws Exception {
StringWriter outputString = new StringWriter(512);
Transformer transformer = getXSLTransformer (xslFile);
transformer.transform(new StreamSource(new StringReader(xml)), new
StreamResult(outputString));
return outputString.toString();
Thank's in advance.
kuruvi
Edited by: Mc_Kuruvi on Jun 14, 2009 3:47 AMRead:
Oracle® XML DB
Developer's Guide
10g Release 1 (10.1)
Part No. B10790-01
December 2003
1. "Do I use sqlloader and what datatype?"
Use XMLType
2. "I have embedded graphics so do the images get stored separately or does the entire page get stored as a BLOB datatype?"
Page 827:
The Oracle XML DB native datatype XMLType helps store and manipulate XML. Multiple storage options (Character Large Object (CLOB) or structured XML) are available with XMLType, and administrators can choose a storage that meets their requirements. CLOB storage is an un-decomposed storage that is like an image of the original XML. -
Get method ignores xml tags?
This is what I have in my little servlet:
response.setContentType("text/xml;charset=UTF-8");
PrintWriter out = response.getWriter();
String xmlRequest = request.getParameter("xml");
if (xmlRequest != null)
out.println("Client request: " + xmlRequest);
}When I tried passing the data to the server (where the servlet resides), the output on the browser shows...
Client request: hihi2
But the output that I was hoping to see is actually <test><hi>hi</hi><hi2>hi2</hi2></test> since I did the request this way: http://localhost:8084/HS/HSServlet?xml=<test><hi>hi</hi><hi2>hi2</hi2></test>
Please advise.
Thanks.You probably want to HTML encode the XML string, like this:
<test><hi>hi</hi><hi2>hi2</hi2></test>If you have embedded the XML directly in an HTML form, then chances are the browser is filtering out the XML tags as unrecognized HTML tags. Either of these examples would pose a problem:
<form action="http://localhost:8084/HS/HSServlet">
<input name="xml" value="<test><hi>hi</hi><hi2>hi2</hi2></test>">
<input type="submit">
</form>or
<a href="http://localhost:8084/HS/HSServlet?xml=<test><hi>hi</hi><hi2>hi2</hi2></test>">Test</a> -
Embedding inline HTML data in XML using the mx:XML tag with <; and >;
What is best practice for embedding HTML within the
<mx:XML> tag? Programmatically, I can implement this
successfully:
[Bindable]
public var xmlDP:XML = <component data="<" />;
However, I get the following error if I try to store the same
data inline in an mx:XML tag, as such:
<mx:XML id="xmlDP">
<component data="<" />
</mx:XML>
Error #1095: XML parser failure: Unterminated attribute.
If I change the MXML tag as follows, it works fine:
<mx:XML id="xmlDP">
<component data="&lt;" />
</mx:XML>
Unfortunately, I also can not source the mx:XML tag to an XML
file which uses < or > codes, as it yields the same
results. This leads me to believe that the <mx:XML> tag does
not support the special character codes for < and >, but why?
Incidentally, this code also gives a 1095 error:
<mx:XML id="xmlDP">
<component data="<" />
</mx:XML>
This is causing an issue with my source data as it is not
hand typed into Flex, and standard XML supports the < and
> codes. I have tried a full HTML string, as shown below,
but this also generates the error:
<mx:XML id="xmlDP">
<component data="<b>Test</b>"
/>
</mx:XML>
Many thanks for any input you may have!I’m generating the XML source file with
Microsoft’s XML Notepad 2007. It will encode invalid special
characters automatically. My understanding is that this is the
proper way to handle the less than symbol in a XML string, that is
to say using the < code.
With respect to the escape and un-escape methods, I am able
to successfully implement these in AS, but not in MXML. This makes
sense considering they are AS methods, but I was hoping to be able
to do something like:
<mx:XML id="xmlDP">
<component data="escape('<');" />
</mx:XML>
This gives the following compilation error:
The value of attribute "data" must not contain the '<'
character.
As does using the escape character as such:
<mx:XML id="xmlDP">
<component data="\<" />
</mx:XML>
Below is an example of what the escape character may be used
for in AS:
var myString:String = "\"";
trace(myString);
// result: "
Likewise, I can escape the < character as such:
var myString:String = escape("<");
trace(myString);
// result: %3C
<mx:XML id="xmlDP">
<component data="%3C" />
</mx:XML>
trace(un-escape(xmlDP.@data));
// result: <
As you can see, using %3C and unescaping in AS will yield the
correct result; however, this is not a practical method of
representing the data in MXML as I would have to write an AS method
to un-escape the XML string anyway, so I might as well just store
the data in AS to begin with. I was hoping for a way to source an
mx:XML object, without having to load it into ActionScript
manually. Here’s an example of the functionality I would
expect:
<mx:XML id="xmlDP">
<component data=">" />
</mx:XML>
trace(xmlDP.@data);
// result: >
Only this does not work for the less than symbol. I’m
assuming at this point that this is a bug in the Flex compiler.
Thanks again for your help troubleshooting this one! -
XML parser fails to convert html encoded text nodes
Under the strain of large documents this defect rears its ugly head more often. While parsing a text node containing html encoded chars i.e. < > &; etc...
The parser will seemingly forget to change the chars at random, 99.9% of the time everything is ok and the proper conversions take place:
< -> <
> -> >
&; -> &
Once an error occurs it is reproducible until the text node is changed ( values and/or order ) then it is a crapshoot again.
These tests were done using the default UTF-8 encoding, here is the exception thrown by the parser along with a portion of the text node before and after the first parsing.
Let me be clear, the parser actually succeeds the first time but the transformation of the HTML encoded pieces possibly fails. It is on the parsing of the text node value as its own document that the parser fails.
Error 0 : Error parsing XML string! Line :: 1, Column :: 65674
Error 1 : End tag does not match start tag 'Project'.
End tag does not match start tag 'Project'.
at oracle/xml/parser/v2/XMLError.flushErrors (XMLError.java:233)
at oracle/xml/parser/v2/NonValidatingParser.parseDocument (NonValidatingParser.java:248)
at oracle/xml/parser/v2/XMLParser.parse (XMLParser.java:117)
at pacificedge/xml/XMLUtilities.loadParserFromString (XMLUtilities.java:104)
Preprocessing ::
<Project stuff0="0" stuff1="0" stuff2="0" stuff3="1" stuff4="100167" stuff5="100213">
<StuffA>100213</StuffA>
<Name>I am a Name</Name>
<StartDate>1998-08-10</StartDate>
<FinishDate>2000-06-30</FinishDate>
<Path>Folder1\Folder2</Path>
</Project>
Post processing:
<Project stuff0="0" stuff1="0" stuff2="0" stuff3="1" stuff4="100167" stuff5="100213">
<StuffA>100213</StuffA>
<Name>I am a Name</Name>
<StartDate>1998-08-10</StartDate> <-- Error is raised here when the value of the text node is used as an xml document
<FinishDate>2000-06-30</FinishDate>
<Path>Folder1\Folder2</Path>
</Project>
Please investigate this. It is a chronic problem for us and possibly many others.
nullSorry for the encoding issues in the message before here are the pertinent pieces hope this shows up correctly.
&;lt; -> &;#60;
&;gt; -> >
&;amp; -> &;#38;
Preprocessing ::
&;lt;Project stuff0="0" stuff1="0" stuff2="0" stuff3="1" stuff4="100167" stuff5="100213"&;gt;
&;lt;StuffA&;gt;100213&;lt;/StuffA&;gt;
&;lt;Name&;gt;I am a Name&;lt;/Name&;gt;
&;lt;StartDate&;gt;1998-08-10&;lt;/StartDate&;gt;
&;lt;FinishDate&;gt;2000-06-30&;lt;/FinishDate&;gt;
&;lt;Path&;gt;Folder1\Folder2&;lt;/Path&;gt;
&;lt;/Project&;gt;
Post processing:
<Project stuff0="0" stuff1="0" stuff2="0" stuff3="1" stuff4="100167" stuff5="100213">
<StuffA>100213</StuffA>
<Name>I am a Name</Name>
&;lt;StartDate>1998-08-10</StartDate> <-- Error is raised here when the value of the text node is used as an xml document
<FinishDate>2000-06-30</FinishDate>
<Path>Folder1\Folder2</Path>
</Project>
null -
XML tag need to be change in the sorce file (ENCODING)
Hi
my source file XML format.. in this file I'm getting as a first tag as like this.. <b><?xml version="1.0" encoding="ISO-8859-1"?>..</b> but actually in my Message mapping source code i have starting tag is like this...
<b><?xml version='1.0' encoding = 'UTF-8" ?></b>
so, som encoding is different.. for this how can solve the problem.. wether i need to change in the source file itself.. or is there any solution to change that in our scenario itself..
plz clarryfy this..
Thanks
babuHi Babu,
Check out my answers in this Link
Re: How to change the incoming xml to a different namespace
this way you can modify the XML tags which are beyond the reach of mapping
Regards
Vishnu -
Embedding html in xml tags, when rednering text as html
Quick question,
I have a site that reads all content from an external xml.
The text box that reads this info renders the content as html; does
anyone know how to go about putting an html tag in an xml tag so
that flash can read it?
So would it be possible to do:
<content>
" Welcome to the site<br>we are happy to have you
here<br><img src="logo.jpg"> "
</content>I completed deleted the old way, so I have to recreate this
from scratch...but here is how I used to be able to do it (which,
looking at how I do it now since HTML wasn't parsing, this was so
stupid).
<chair id="1" price_point="High-end">
<image><a
href='/dsn/catalog/viewproductpage.asp?OwnerID=1&PageID=%7B7A0FB858%2D2184%2D4033%2DB 474%2D2B22D89BBD96%7D'><img
src='/images/s/dshe/mini/7/79219.jpg border='0'
/></a></image>
<description><a
href='/dsn/catalog/viewproductpage.asp?OwnerID=1&PageID=%7B7A0FB858%2D2184%2D4033%2DB 474%2D2B22D89BBD96%7D'>Toni</a></description>
<brand>Kwalu</brand>
<composition>Kwalu</composition>
<leg_style>Chippendale</leg_style>
<overall_style>Transitional</overall_style>
</chair>
And now in 1.1, having that, it prints this on screen:
<a
href='/dsn/catalog/viewproductpage.asp?OwnerID=1&PageID=%7B7A0FB858%2D2184%2D4033%2DB474% 2D2B22D89BBD96%7D'><img
src='/images/s/dshe/mini/7/79219.jpg border='0' /></a>
whereas before, it would be that image and it would link to
the page specified in the href.
I'm about to take off from work for the night, but I'll check
back when I get home if you need anything else from me.
Thanks for your help, Kin. :)
Kyle -
Can't use HTML in XML tags anymore?
I've noticed with 1.1 that HTML that worked in an XML tag in
1.0 no longer displays. Spry seems to be taking what is in the tags
as a literal string. For the most part, I've been able to work
around this, however, I'm running into some issues now where there
are tags that are empty because a certain product just has nothing
to go in that tag. When that happens, it is being displayed on the
page as:
<td></td> and the style I'm calling on all
<td>'s (a bottom border) doesn't show since there is nothing
in the tag at all. I tried just putting a space, but white space
(when there is nothing but whitespace) is ignored and putting
results in the XML not loading correctly. &nbsp;
results in " " showing up in that <td> whereas in
1.0, it would've been a non-breaking space.
I guess what I'm asking is if there is a way to still get
HTML to display correctly or if there is some sort of workaround
for cells that end up being blank?I completed deleted the old way, so I have to recreate this
from scratch...but here is how I used to be able to do it (which,
looking at how I do it now since HTML wasn't parsing, this was so
stupid).
<chair id="1" price_point="High-end">
<image><a
href='/dsn/catalog/viewproductpage.asp?OwnerID=1&PageID=%7B7A0FB858%2D2184%2D4033%2DB 474%2D2B22D89BBD96%7D'><img
src='/images/s/dshe/mini/7/79219.jpg border='0'
/></a></image>
<description><a
href='/dsn/catalog/viewproductpage.asp?OwnerID=1&PageID=%7B7A0FB858%2D2184%2D4033%2DB 474%2D2B22D89BBD96%7D'>Toni</a></description>
<brand>Kwalu</brand>
<composition>Kwalu</composition>
<leg_style>Chippendale</leg_style>
<overall_style>Transitional</overall_style>
</chair>
And now in 1.1, having that, it prints this on screen:
<a
href='/dsn/catalog/viewproductpage.asp?OwnerID=1&PageID=%7B7A0FB858%2D2184%2D4033%2DB474% 2D2B22D89BBD96%7D'><img
src='/images/s/dshe/mini/7/79219.jpg border='0' /></a>
whereas before, it would be that image and it would link to
the page specified in the href.
I'm about to take off from work for the night, but I'll check
back when I get home if you need anything else from me.
Thanks for your help, Kin. :)
Kyle -
Html tag as xml tag value?
Hi,
Can I put a html tag as value to a xml tag? something like this
<abc>
<username>Uma</username>
<displayTag>
<start><h1></start>
<end></h1></end>
</displayTag>
</abc>Please help.
Thanks in advance.You can either use > and < for < and > to get something that appears to be an html tag, or you can use a CDATA section.
It partly depends on what you plan to do with that content.
Dave Patterson -
Need to add xml tag in the request message
Hello Experts,
Need ur help.
Right now i am working on the scenario Http -> to -> Proxy.
Whatever request i am getting is not having XML tag in it, and because of that my mapping is failing.
Can you tell me that how can i add XML tag in my request so it will not fail in Mapping?
Need to add : <?xml version="1.0" encoding="UTF-8"?> in request.
Thanks,
HetalHI Hetal
Instead of adding this to the source message. Remove this tag from mapping.
Use a XSLT mapping without this initial tag. it will work.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:m="http://namespace">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
<xsl:template match="/">
<xsl:for-each select="//tag">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Use this mapping without
<?xml version="1.0" encoding="UTF-8"?>
If you still see XML tag then use
<xsl:output method="html"
instead of
<xsl:output method="xml"
Thanks
Gaurav -
How to embed jnlp file into html page using object tag
hi everyone,
i have written one jnlp file like this.
<?xml version="1.0" encoding="utf-8" ?>
<!-- JNLP file for Demo applicaion -->
<jnlp spec="1.0+" codebase="http://localhost:9080/base/" href="SampleExample.jnlp">
<information>
<title>Demo Application</title>
<vendor> </vendor>
<description>Sample Demo Application</description>
<offline-allowed/>
</information>
<security/>
<resources>
<j2se version="1.3+" />
<jar href="common.jar" main="true" download="eager" />
<jar href="classes12.jar" download="eager" />
<jar href="toplink.jar" download="eager"/>
<package name="com.applet.*" part="applet" recursive="true"/>
</resources>
<applet-desc name="grid" main-class="com.applet.PriceGrid" width="1000" height="300"/>
</jnlp>
i am trying embed that jnlp file using object tag like
<OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
<PARAM NAME="jnlp" VALUE="http://localhost:9080/base/SampleExample.jnlp">
</OBJECT>
but i am not able to load the applet using Web Start.
Can anyone please help me. This is very Urgent for me.
Thanks & Regards,
Shiva.thanks.
i am giving my problem clearly. i have one applet. Previously i am loading the applet in my html page using object tag like this...
<OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
<PARAM NAME="CODE" VALUE="com.adp.base.applet.PriceGrid.class" >
<PARAM NAME="ARCHIVE" VALUE="common.jar,classes12.jar,toplink.jar" >
<PARAM NAME="NAME" VALUE="grid" >
<PARAM NAME="type" VALUE="application/x-java-applet">
<PARAM NAME= "cache_option" VALUE ="no">
</OBJECT>
now what i need to do is
i need load the applet only first time using web start and when ever the applet code changes in the server i need to reload the applet.
for that i kept all the applet resources in .jnlp file.i want to cache all the resources which are in .jnlp file and applet must be displayed within a web page within a browser.
Webstart always open a new application windows.
I need to run an Applet embedded within a web page within a browser.
Is there a way to still use Webstart? -
Error deserializing arguments, xml tag without a recognized type
I am trying to run a webservice created using Weblogic Workshop 8.1sp2 that communicates
with an ejb control. When I test in debug mode, I get the above error, specifically:
<detail>
<jwErr:jwErrorDetail xmlns:jwErr="http://www.bea.com/2002/04/jwErrorDetail/">
com.bea.wlw.runtime.core.request.RequestValidationException: Error deserializing
arguments.
Encountered an xml tag without a recognized type: the type must be declared with
an xsi:type attribute.
Caused by: com.bea.xml.marshal.XmlEncodingException: Encountered an xml tag with
out a recognized type: the type must be declared with an xsi:type attribute.
</detail>
I am passing a Request object to the jws method (to the ejb) that has a Collection
as an instance member. This Collection references objects of another type, Param
(code for both objects below). Before passing the object, I convert the Collection
to an array of objects. When I call the operation via a java client, I get the
above message.
In Workshop, I've included the Request and Param classes as the parameter xml
and the soap style is rpc. I've tested the ejb by itself and it is working fine.
Request.java:
import java.util.*;
public class Request implements java.io.Serializable
protected Collection params=null;
public Collection getParams()
{ return params; }
public void setParams(Collection data)
{ params=data; }
Param.java:
public class Param implements java.io.Serializable
private String name=null;
private Object value=null;
public String getName()
{ return name; }
public void setName(String data)
{ name = data; }
public Object getValue()
{ return value; }
public void setValue(Object data)
{ value=data; }
Here's the code from the jws:
public class MyWS implements com.bea.jws.WebService
* @common:control
private control.PSEjbControl psEJB;
static final long serialVersionUID = 1L;
* @common:operation
* @jws:parameter-xml
* include-java-types="mypackage.Request mypackage.Param"
* @jws:protocol soap-style="rpc"
public void addData(mypackage.Request arg0) throws java.rmi.RemoteException
System.out.println("arg0 : " + arg0);
psEJB.addData(arg0);
*Note: in the server console, arg0 comes through as null when called from my client.
Here's the bit from my client:
import weblogic.jws.proxies.*;
import org.openuri.www.encodedTypes.Request;
import org.openuri.www.encodedTypes.Param;
public void go(String wsdl) throws Exception {
MyWSSoap mw = null;
mw = new MyWS_Impl().getMyWSSoap();
Request req = new Request();
Collection reqColl = new ArrayList();
Param param1 = new Param();
param1.setName("NAME");
param1.setValue("Joe Tester");
Param param2 = new Param();
param2.setName("ADDRESS");
param2.setValue("345 Test Drive");
reqColl.add(param1);
reqColl.add(param2);
Object[] obs = reqColl.toArray();
req.setParams(obs);
mw.addData(req);
Not sure if this enough to go by. Please let me know if you need more information.
Any help is really appreciated. Thanks.Hi Keith,
My only suggestion is to factor out the java.util.Collection (see the
docs here [1]) with either primitive types or XMLBeans [2].
Sorry, not much help. You might also ask your question in the workshop
[3] newsgroup.
Bruce
[1]
http://e-docs.bea.com/workshop/docs81/doc/en/integration/reference/refJavaClassConversion.html
[2]
http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/xmlbeans/conXMLBeansSupportBuiltInSchemaTypes.html
[3]
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.workshop
Keith wrote:
>
Hi Bruce, thanks for the reply. I set the operation for document-style soap and
still get the deserialization exception as mentioned in my original note. Below
is the wsdl. Note: in my original note, the problematic operation was addData()
which is now named addBusinessLocation(). As always, your help is greatly appreciated.
Keith
<?xml version="1.0" encoding="utf-8"?>
<!-- @editor-info:link autogen="true" source="PublicServiceWS.jws" -->
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/"
xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.openuri.org/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
targetNamespace="http://www.openuri.org/">
<types>
<s:schema elementFormDefault="qualified" targetNamespace="http://www.openuri.org/"
xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:ope="http://www.openuri.org/">
<s:element name="addBusinessLocation">
<s:complexType>
<s:sequence>
<s:element name="arg0" type="ope:Request" minOccurs="0"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="addBusinessLocationResponse">
<s:complexType>
<s:sequence/>
</s:complexType>
</s:element>
<s:element name="getBusinessLocation">
<s:complexType>
<s:sequence/>
</s:complexType>
</s:element>
<s:element name="getBusinessLocationResponse">
<s:complexType>
<s:sequence>
<s:element name="getBusinessLocationResult" type="ope:Response" minOccurs="0"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Response" nillable="true" type="ope:Response"/>
<s:element name="repeat">
<s:complexType>
<s:sequence>
<s:element name="in" type="s:string" minOccurs="0"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="repeatResponse">
<s:complexType>
<s:sequence>
<s:element name="repeatResult" type="s:string" minOccurs="0"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="string" nillable="true" type="s:string"/>
<s:complexType name="Request">
<s:sequence>
<s:element name="Params" type="ope:Collection" minOccurs="0"/>
</s:sequence>
</s:complexType>
<s:complexType name="Collection">
<s:sequence>
<s:element name="item" type="s:anyType" nillable="true" minOccurs="0"
maxOccurs="unbounded"/>
</s:sequence>
</s:complexType>
<s:complexType name="Param">
<s:sequence>
<s:element name="Name" type="s:string" minOccurs="0"/>
<s:element name="Value" type="s:anyType" minOccurs="0"/>
</s:sequence>
</s:complexType>
<s:complexType name="Response">
<s:complexContent>
<s:extension base="ope:Request">
<s:sequence/>
</s:extension>
</s:complexContent>
</s:complexType>
</s:schema>
</types>
<message name="addBusinessLocationSoapIn">
<part name="parameters" element="s0:addBusinessLocation"/>
</message>
<message name="addBusinessLocationSoapOut">
<part name="parameters" element="s0:addBusinessLocationResponse"/>
</message>
<message name="getBusinessLocationSoapIn">
<part name="parameters" element="s0:getBusinessLocation"/>
</message>
<message name="getBusinessLocationSoapOut">
<part name="parameters" element="s0:getBusinessLocationResponse"/>
</message>
<message name="repeatSoapIn">
<part name="parameters" element="s0:repeat"/>
</message>
<message name="repeatSoapOut">
<part name="parameters" element="s0:repeatResponse"/>
</message>
<message name="getBusinessLocationHttpGetIn"/>
<message name="getBusinessLocationHttpGetOut">
<part name="Body" element="s0:Response"/>
</message>
<message name="repeatHttpGetIn">
<part name="in" type="s:string"/>
</message>
<message name="repeatHttpGetOut">
<part name="Body" element="s0:string"/>
</message>
<message name="getBusinessLocationHttpPostIn"/>
<message name="getBusinessLocationHttpPostOut">
<part name="Body" element="s0:Response"/>
</message>
<message name="repeatHttpPostIn">
<part name="in" type="s:string"/>
</message>
<message name="repeatHttpPostOut">
<part name="Body" element="s0:string"/>
</message>
<portType name="PublicServiceWSSoap">
<operation name="addBusinessLocation">
<input message="s0:addBusinessLocationSoapIn"/>
<output message="s0:addBusinessLocationSoapOut"/>
</operation>
<operation name="getBusinessLocation">
<input message="s0:getBusinessLocationSoapIn"/>
<output message="s0:getBusinessLocationSoapOut"/>
</operation>
<operation name="repeat">
<input message="s0:repeatSoapIn"/>
<output message="s0:repeatSoapOut"/>
</operation>
</portType>
<portType name="PublicServiceWSHttpGet">
<operation name="getBusinessLocation">
<input message="s0:getBusinessLocationHttpGetIn"/>
<output message="s0:getBusinessLocationHttpGetOut"/>
</operation>
<operation name="repeat">
<input message="s0:repeatHttpGetIn"/>
<output message="s0:repeatHttpGetOut"/>
</operation>
</portType>
<portType name="PublicServiceWSHttpPost">
<operation name="getBusinessLocation">
<input message="s0:getBusinessLocationHttpPostIn"/>
<output message="s0:getBusinessLocationHttpPostOut"/>
</operation>
<operation name="repeat">
<input message="s0:repeatHttpPostIn"/>
<output message="s0:repeatHttpPostOut"/>
</operation>
</portType>
<binding name="PublicServiceWSSoap" type="s0:PublicServiceWSSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="addBusinessLocation">
<soap:operation soapAction="http://www.openuri.org/addBusinessLocation"
style="document"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="getBusinessLocation">
<soap:operation soapAction="http://www.openuri.org/getBusinessLocation"
style="document"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="repeat">
<soap:operation soapAction="http://www.openuri.org/repeat" style="document"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<binding name="PublicServiceWSHttpGet" type="s0:PublicServiceWSHttpGet">
<http:binding verb="GET"/>
<operation name="getBusinessLocation">
<http:operation location="/getBusinessLocation"/>
<input>
<http:urlEncoded/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
<operation name="repeat">
<http:operation location="/repeat"/>
<input>
<http:urlEncoded/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
</binding>
<binding name="PublicServiceWSHttpPost" type="s0:PublicServiceWSHttpPost">
<http:binding verb="POST"/>
<operation name="getBusinessLocation">
<http:operation location="/getBusinessLocation"/>
<input>
<mime:content type="application/x-www-form-urlencoded"/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
<operation name="repeat">
<http:operation location="/repeat"/>
<input>
<mime:content type="application/x-www-form-urlencoded"/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
</binding>
<service name="PublicServiceWS">
<port name="PublicServiceWSSoap" binding="s0:PublicServiceWSSoap">
<soap:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
</port>
<port name="PublicServiceWSHttpGet" binding="s0:PublicServiceWSHttpGet">
<http:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
</port>
<port name="PublicServiceWSHttpPost" binding="s0:PublicServiceWSHttpPost">
<http:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
</port>
</service>
</definitions>
Bruce Stephens <[email protected]> wrote:
Hi Keith,
As a quick test, you might try changing the protocol style to use
doc/lit (@jws:protocol soap-style="document") to see if this provides
another view on the real issue.
Could you post the generated WSDL?
Thanks,
Bruce
Keith wrote:
I am trying to run a webservice created using Weblogic Workshop 8.1sp2that communicates
with an ejb control. When I test in debug mode, I get the above error,specifically:
<detail>
<jwErr:jwErrorDetail xmlns:jwErr="http://www.bea.com/2002/04/jwErrorDetail/">
com.bea.wlw.runtime.core.request.RequestValidationException: Errordeserializing
arguments.
Encountered an xml tag without a recognized type: the type must bedeclared with
an xsi:type attribute.
Caused by: com.bea.xml.marshal.XmlEncodingException: Encountered anxml tag with
out a recognized type: the type must be declared with an xsi:type attribute.
</detail>
I am passing a Request object to the jws method (to the ejb) that hasa Collection
as an instance member. This Collection references objects of anothertype, Param
(code for both objects below). Before passing the object, I convertthe Collection
to an array of objects. When I call the operation via a java client,I get the
above message.
In Workshop, I've included the Request and Param classes as the parameterxml
and the soap style is rpc. I've tested the ejb by itself and it isworking fine.
Request.java:
import java.util.*;
public class Request implements java.io.Serializable
protected Collection params=null;
public Collection getParams()
{ return params; }
public void setParams(Collection data)
{ params=data; }
Param.java:
public class Param implements java.io.Serializable
private String name=null;
private Object value=null;
public String getName()
{ return name; }
public void setName(String data)
{ name = data; }
public Object getValue()
{ return value; }
public void setValue(Object data)
{ value=data; }
Here's the code from the jws:
public class MyWS implements com.bea.jws.WebService
* @common:control
private control.PSEjbControl psEJB;
static final long serialVersionUID = 1L;
* @common:operation
* @jws:parameter-xml
* include-java-types="mypackage.Request mypackage.Param"
* @jws:protocol soap-style="rpc"
public void addData(mypackage.Request arg0) throws java.rmi.RemoteException
System.out.println("arg0 : " + arg0);
psEJB.addData(arg0);
*Note: in the server console, arg0 comes through as null when calledfrom my client.
Here's the bit from my client:
import weblogic.jws.proxies.*;
import org.openuri.www.encodedTypes.Request;
import org.openuri.www.encodedTypes.Param;
public void go(String wsdl) throws Exception {
MyWSSoap mw = null;
mw = new MyWS_Impl().getMyWSSoap();
Request req = new Request();
Collection reqColl = new ArrayList();
Param param1 = new Param();
param1.setName("NAME");
param1.setValue("Joe Tester");
Param param2 = new Param();
param2.setName("ADDRESS");
param2.setValue("345 Test Drive");
reqColl.add(param1);
reqColl.add(param2);
Object[] obs = reqColl.toArray();
req.setParams(obs);
mw.addData(req);
Not sure if this enough to go by. Please let me know if you need moreinformation.
Any help is really appreciated. Thanks. -
Form or form on report to update XML tagS stored in CLOB field.
I would like to create a form or a form on a report
where i can update xml tags. The xml data is stored in a CLOB field.
sample CLOB DATA
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE preferences SYSTEM 'http://java.sun.com/dtd/preferences.dtd'>
<preferences EXTERNAL_XML_VERSION="1.0">
<root type="user">
<map />
<node name="com">
<map />
<node name="mynode">
<map />
<node name="utils">
<map />
<node name="properties">
<map>
<entry key="Save" value="ON" />
<entry key="TM_PORT" value="55555" />
<entry key="TM_PORT2" value="7777" />
<entry key="SubID" value="all" />
<entry key="UserDBUsr" value="myuser" />
<entry key="JMS_JDBC" value="OFF" />
<entry key="Side" value="BUY" />
<entry key="HEALTH_MONITOR_CRITICAL_DISK_SPACE" value="500" />
<entry key="HEALTH_MONITOR_WARNING_DISK_SPACE" value="750" />
<entry key="HEALTH_MONITOR_PERIOD" value="600000" />
</map>
</node>
</node>
</node>
</node>
</root>
</preferences>
the goal is to have a form where i can view and update the "value" of following:
TM_PORT
TM_PORT2
SubID
UserDBUsr
JMS_JDBC
Side
HEALTH_MONITOR_CRITICAL_DISK_SPACE
HEALTH_MONITOR_WARNING_DISK_SPACE
HEALTH_MONITOR_PERIOD
I have searched around this forum but could not find an example.
it would be cool if I could also load the an xml file into the clob.
Thank you.Hi,
I think you just study first the topics about XML DB to understand how to manupulate xml data in the database.
See:
http://www.oracle.com/technology/tech/xml/xmldb/index.html
and
XML DB
Regards,
Cafer -
Error for fetching long text in xml tag for xml publisher report
My requirement is to fetch a large document which is in text format in XML output which can be printed in PDF format by using RTF method to generate PDF.But during XML ouput i got the following error-
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
button, or try again later.
The following tags were not closed: XXBG_EAMWRREP_V1, LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1,
G_MEDIA...
XXBG_EAMWRREP_V1 is the rdf and LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1, G_MEDIA are the groups name. In the group
G_MEDIA i am fetching long_text from attahcment in application. In Database table the datatype of the text attachment is 'long' and there is a huge text
data loaded in large data editor of that column. If the text data volume is small enough then there is no problem for fetching the xml output.
If we change the output format as HTMl then there is no problem for fetching the output for long text but for xml output format we are unable to fetch the data
in xml tag.
One thing to mention the oracle report is the copy of Maintenance Work Order Detail Report. The seeded report is HTML format in 11i. The requirement is to make it in xml report.
Please help.Hi,
Actually clob datatype is not available in oracle report builder datatype lov. Could you pls tell the other ways of converting that to clob in oracle report... -
XML tags in an "export : XML" Report Template
Hi All,
I'm using the export XML report template to produce XML from a query. One of the column contains XML tags and the template is translating eg: if the column is "Groups" then I get:
<Groups>& lt ;Group& gt ;Sales & lt ;/Group & gt ; & lt ;Group& gt ;IT& lt ;/Group& gt ;</Groups>(ignoring all the spaces - OTN is translating the & gt 's :)
instead of:
<Groups><Group>Sales<Group><Group>IT</Group></Groups>Is there an easy way to stop this ?
Thanks,
Steve
Edited by: spilgrim on Mar 6, 2009 12:14 PM
Edited by: spilgrim on Mar 6, 2009 12:14 PMHi Steve,
Did you ever solve this? I'm having a similar issue while trying to build a Report Query that I want to build with nested elements.
<?xml version="1.0" encoding="UTF-8" ?>
- <ROWSET>
- <ROW>
<EE_ID>467</EE_ID>
<EE_GRIDS>
<EE_GRID INDEX="1">
<EE_INCENTIVE_CASH_PROGRAM>MIP</EE_INCENTIVE_CASH_PROGRAM>
<EE_BONUS>20</EE_BONUS>
</EE_GRID>
<EE_GRID INDEX="2">
<EE_INCENTIVE_CASH_PROGRAM>VIP</EE_INCENTIVE_CASH_PROGRAM>
<EE_BONUS>30</EE_BONUS>
</EE_GRID>
</EE_GRIDS>
</ROW>
- <ROW>
<EE_ID>468</EE_ID>
<EE_GRIDS>
<EE_GRID INDEX="1">
<EE_INCENTIVE_CASH_PROGRAM>MIP</EE_INCENTIVE_CASH_PROGRAM>
<EE_BONUS>20</EE_BONUS>
</EE_GRID>
<EE_GRID INDEX="2">
<EE_INCENTIVE_CASH_PROGRAM>VIP</EE_INCENTIVE_CASH_PROGRAM>
<EE_BONUS>30</EE_BONUS>
</EE_GRID>
</EE_GRIDS>
</ROW>
</ROWSET>
Thanks
Keith
Edited by: kmatthew on Mar 17, 2009 2:44 PM
Maybe you are looking for
-
Hello Guys , I am creating a sales order in CRM and I am using CRM as standalone system. I wanna test Pricing in CRM and I cant not. I maintained all necesary steps... maintained pricing determination and Created condit records. VMC has been actived
-
URGENT:- Regarding Purchase Requsition
Hi, i am making report in which i want to display that these are the requsitions whic are approved by these people at these dates... plzzz help me out as it is most urgent to me.. regards, ric.s
-
Per my last post - potentially fatal mistake
I think my software guy gave me the wrong software, I told him I need Server 2003 so I can run CF Standard. I seem to have Small Business Version, but I just checked, and I never realized Adobe recommends the Web edition. I can't get anything to hook
-
Have a requirement where we are using db authentication and we have the login with a special character i.e @. Now am struggling to make the application authenticate using this login even though the user gets authenticated at the db level using double
-
Intigrating java script with jsf
Hi all, I am trying to get a alert message through script which has the data of the <h:inputText >? How .Help me? Thanks