I am creating a site that communicates with the server via XML. Everything in my local host is absolutely fine. However, when my website is uploaded to the server instead of this XML format:
& lt ;? Xml version = "1.0" encoding = "UTF-8" standalone = "yes"? & Gt; & Lt; Quser xmlns = "http: // www ..." xmlns: atom = "http://www.w3.org/2005/atom" & gt; & Lt; Username & gt; Name & lt; / Username & gt; & Lt; / Quser & gt; I; Here's one:
& lt ;? Xml version = "1.0" encoding = "UTF-8" standalone = "yes"? & Gt; & Lt; : Quser xmlns: = "http: // www2 ...." xmlns: atom = "http://www.w3.org/2005/atom" & gt; & Lt; : Username & gt; Read & lt; /: Username & gt; & Lt ;: quser & gt; I have the following package-information in my model. I declare class
@ javax.xml.bind.annotation.xmlSchema (namespace = "http: / / Www ..", elementFormDefault = XmlNsForm.QUALIFIED, xmlns = {@ javax.xml) .bind.annotation.XmlNs (prefix = "", namespace = "http: // www .."), @ javax.xml.bind .notation.xmlNs (prefix = "atom", namespace "er") package model ; Import javax.xml.bind.annotation. *; As I told you that my localhost is working perfectly well, but even if I change the prefix in the server Yes (for the test I set it prefix = "xs") Parvaar It's a wired lot in my local host, if you think that I have made changes to my localhost, when I debug and upload the code on the server, then it should be included.
In addition to this, I realize that I have some JAASAB libraries for web-INF. Just for testing, I put my own LIBs and in the main program library. At the same XML format Ost told the server. Therefore, I decide to remove these libraries from both places. After that everything works in my localhost but not in the server. Please give me some instructions to know something or something about this issue.
Try removing the location in the prefix manifesto:
this
@ javax.xml.bind.annotation.XmlN (prefix = "", namespace = "http: //www..ckp"), instead of < / P>
@ javax.xml.bind.annotation.XmlNs (prefix = "", namespace = "http: // www ..ckp"),
Comments
Post a Comment