Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
57 views

I’m trying to generate Java classes from a WSDL file using the Maven plugin com.sun.xml.ws:jaxws-maven-plugin. The WSDL includes embedded XSD schema(s), and I’m not allowed to modify the WSDL or its ...
Quad's user avatar
  • 11
0 votes
0 answers
91 views

I'm generating XML using JAXB and need specific namespace prefixes for my XML elements. Here's an example of the XML structure I am currently generating, where each namespace has a unique prefix: <...
farkadi oussama's user avatar
0 votes
2 answers
126 views

Is it possible to have a binding to a string without an adapter? I have a 3rd party schema with an attribute with the wrong type (date) and in an external file binding I transform it to string so the ...
PhoneixS's user avatar
  • 11.1k
1 vote
0 answers
773 views

Please do not block the post due to the fact that a similar solution already exists on this site. Using the following java code, which is a REST service that returns xml, when I request the service ...
Steffano Aravico's user avatar
0 votes
0 answers
49 views

Please find below xml format where namespace is coming in end tags as well <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <report xmlns="urn:...
AnilSrinivas Muddineni's user avatar
0 votes
1 answer
61 views

I got following XML with element name being present with their package name. How can I marshal/unmarshal the given XML using JaxB? <com.jaraws.api.Vehicle> <number>KT12356</number> ...
Jaraws's user avatar
  • 701
0 votes
1 answer
2k views

In my maven based project, String "contextPath" is nothing but any package of my project. No matter what package(or multiple packages appended with :) i assign to contextPath, i still get ...
Sash_KP's user avatar
  • 5,591
1 vote
1 answer
2k views

I want to generate a POM file using JAXB 3. I downloaded the XSD https://maven.apache.org/xsd/maven-4.0.0.xsd into src/main/xsd. I generated the model classes using the JAXB maven plugin. The POM file ...
Sybuser's user avatar
  • 1,604
0 votes
0 answers
137 views

I have 3 xsd schema in which one xsd is referring to 2 other xsd's. How to convert these xsd schema into java object. I have tried unmarshalling using JAXB and also tried many things. <?xml ...
Prashant Kumar's user avatar
1 vote
1 answer
49 views

i am new in android and i am facing an strange situation in which i am not finding the setupWithViewPager.When i am calling objectTabLayout.setupWithViewPager then setupWithViewPager is not finding.....
Saad Ebad's user avatar
0 votes
1 answer
671 views

I have an XSD: <?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://www.xyz.m" xmlns="http://www.xyz.m" xmlns:xs="http://www....
Ztrew's user avatar
  • 48
0 votes
1 answer
216 views

I'm using xmlbuilder2 node module to build the retrieved data and render them into XML page. when the data is very big I got this error FATAL ERROR: Ineffective mark-compacts near heap limit ...
Yasmine ghazal's user avatar
2 votes
2 answers
3k views

I have two classes/tables--- Customer and Address having a bi-directional one-to-one relationship. I getting the details from these two tables and exposing them using a rest controller and i am ...
Arpan Banerjee's user avatar
3 votes
1 answer
6k views

What is exact difference between @XmlRootElement @JacksonXmlRootElement? I know @XmlRootElement is generic, But when I check package structure both are different. So there must be some advantage ...
Pramod's user avatar
  • 77
0 votes
0 answers
496 views

I am consuming a wsdl described as : <wsdl:binding name="PassengerConformance_v1Binding" type="tns:PassengerConformanceAuthenticationPortType"> <soap:binding style="document" ...
kriti gupta's user avatar
0 votes
1 answer
395 views

I am using JAXB to generate java code from XML, which has an enum <xs:simpleType name="color"> <xs:restriction base="xs:string"> <xs:enumeration value="Blue"/> ...
user837593's user avatar
0 votes
2 answers
2k views

I try to produce xml-format data from spring boot restcontroller. Below is User model codes first. @Entity @Table(name="BlogUser") @XmlRootElement public class User { @Id @GeneratedValue(...
Joseph Hwang's user avatar
  • 1,433
0 votes
1 answer
67 views

I have a lot of classes that are converted to XML using eclipse MOXy @XmlNamedObjectGraphs to generate. They mostly seem to behave themselves, except for one class - TaskSchedule: @XmlAccessorType(...
fancyplants's user avatar
  • 1,737
1 vote
1 answer
120 views

I have a xml file payload which i want to unmarshal using jaxb, I've created a pojo class for unmarshalling and I've defined xml attributes and elements to that pojo, but i'm a little bit confused ...
Anurag's user avatar
  • 127
0 votes
1 answer
228 views

I am trying to use the sbt-scalaxb to generate bindings for the FixRepository.xsd and it does not like the SUBJ. As a last resort, of cause, I can to slightly change the schema, but is there maybe a ...
bobah's user avatar
  • 19k
1 vote
1 answer
629 views

We have been using JAXB to generate XML to interface with a third party. This third party is asking that for one section we produce a set of 2 different 0-n XML Elements in a repeating fashion without ...
Matt's user avatar
  • 21
0 votes
0 answers
124 views

Problem I have an XML file with an array of items. I can correctly bind to the list of items and also to attributes on the node. However, I cannot get any sub elements bound and not sure what XPath ...
Brownish Monster's user avatar
0 votes
1 answer
357 views

I have 2 entities: @Entity @XmlRootElement public class test { @Getter @Setter @XmlElement(HERE I WANT THE NAME OF THE COUNTRY) private Country country } @...
Dominick's user avatar
1 vote
0 answers
201 views

I want a custom sequence in my xml response rather than alphabetical. It's mostly alphabetical order but with few exceptions. So, I ended up using propOrder in @XmlType annotation as a solution. Now ...
Poorvik Angadi's user avatar
2 votes
0 answers
446 views

We want to use JAXB to create Java objects from XML files, manipulate them and save them back into XML files. This is not a problem in principle. However, the source XML files contain processing ...
Ben's user avatar
  • 346
1 vote
0 answers
177 views

JAXBContext in javax.xml.bind.JAXBContext is neither creating an instance of the package nor it is throwing an exception. The flow of the applicaton is fine until it comes to the below line in the ...
step's user avatar
  • 25
0 votes
1 answer
996 views

I have stored xml data in an array which i want to set it to xml Model. I have tried using oXmlModel.setXML(oPropStored); where oXmlModel is the name of xml Model and oPropStored is the name of array ...
Sumit Ghewade's user avatar
2 votes
3 answers
3k views

Calling a Rest Webservice using the Spring Rest Template as follows- ResponseEntity<String> response = restTemplate.exchange(builder.build().encode().toUri(), HttpMethod.GET, entity, String....
Rehan's user avatar
  • 1,070
0 votes
1 answer
294 views

Calling a Rest Webservice using the Spring Rest Template as follows- ResponseEntity<String> response = restTemplate.exchange(builder.build().encode().toUri(), HttpMethod.GET, entity, String....
Rehan's user avatar
  • 1,070
1 vote
1 answer
3k views

I'm trying to create a choice between a sequence of two elements, and one single element, as such: <xs:element name="LoadStationsRequest"> <xs:choice> <xs:...
Axel Jonsson's user avatar
1 vote
1 answer
69 views

Is it possible to create Prolog-specific bindings of XML schema files? If so, can anybody point me in the right direction? I have a schema which I use in Java to create a JAXB binding to serialize ...
Nikita Visnevski's user avatar
1 vote
1 answer
1k views

I'm trying to use CodeSynthesis XSD (in Visual Studio 2015) for XML to C++ binding. I have a valid XML schema, but XSD fails to compile it. Here is the error message: Error MSB3721 The command "xsd....
Aciel's user avatar
  • 105
1 vote
1 answer
732 views

I want to show the maxLength property in the below XML code. What i need to in my java class. JAVA Class need to modified occording the below xml: public class xxxx{ protected String ...
Rajabaskar's user avatar
3 votes
5 answers
227 views

Would the following use case be considered as justified for Reflection? There are bunch of classes generated from XSDs (hundreds currently on project) which represent various Responses. All of ...
John's user avatar
  • 5,317
4 votes
1 answer
255 views

I have a Java application interoperable with several others information systems A same object could be mapped in differents XML files according to the information system targeted My question is : Is ...
kwisatz's user avatar
  • 1,306
0 votes
1 answer
4k views

Java- jersey client and jersy json and xml binding response as following {"corp":"01105","rateCodeOffers":[{"rateCode":"!I","tosOffers":["MH0000010005"]}]} mapping class @XmlAccessorType(...
d-man's user avatar
  • 58.2k
1 vote
1 answer
48 views

I have a class A implementing Serializable and another class B extends A, but I want to use class B for XML binding, not for serialization. Is there anything I should worry about?
saurabh's user avatar
  • 257
2 votes
2 answers
3k views

I have properties that have ids and values and a name. Can I represent all those with a single class using XmlElement/XmlArray C# annotations? I would like to derive the xml element name from the ...
Michail Michailidis's user avatar
2 votes
1 answer
750 views

Is it possible to bind xml prefix→namespace mapping to a map using javax.xml.bind.* annotations? Something like: class FooPOJO { ... @Namespacebindingannotation Map<String,String> ...
eladidan's user avatar
  • 2,654
0 votes
1 answer
506 views

I have two lists in my root element object. List<Person> persons and List<Address> addresses . When i marshall this , it prints first all the person and then all the addresses . I want to ...
Lone Developer's user avatar
1 vote
0 answers
70 views

I need to unmarshall XML. XML is like this: <array> <item> <name>nick</pid> <age>18</provider> </item> <item> ...
grep's user avatar
  • 5,641
3 votes
2 answers
1k views

I have a List<SelectConditionHeaderModel> . When i am marshalling this list, I am getting an error : javax.xml.bind.MarshalException - with linked exception: [com.sun.istack.internal....
saurabh's user avatar
  • 257
0 votes
0 answers
641 views

WSDL generates properly for SOAP web services (JAXB) if we use JAXB Default data type like java.lang.String(xsd:string), but it gives problem when we use custom java classes as request object for web ...
Stuck in Java's user avatar
0 votes
1 answer
6k views

I have an XML file, that I want to both view and create, edit and delete records. Now I have just managed to read the xml file, and made a decent bootstrap table. I know there is some good libraries ...
Ruben Ravnå's user avatar
2 votes
2 answers
2k views

i want to marshal my object in a ordered xml. My jaxb class is given below:- i have used Xmlordering but it doesn't work to order my xml. package mypackage; import java.util.ArrayList; import java....
NameNotFoundException's user avatar
1 vote
0 answers
994 views

I am across a problem while parsing xml document. Actually I am using XMl Binding wizard to extract the attributes values but every time it throws exceptions. Here is my xml: <?xml version="1.0" ...
Rabi Jayasawal's user avatar
4 votes
1 answer
2k views

I want to generate the POJOs using the xml-binding with a different hierarchy that I have right now. Now I have an xsd like this one: <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="...
Manuelarte's user avatar
  • 1,904
2 votes
1 answer
779 views

I'm using the annotations from the package javax.xml.bind.annotation to construct SKOS XML files. I have some trouble about the best way to realize lines like the following (please, observe that the ...
mat_boy's user avatar
  • 13.8k
1 vote
1 answer
2k views

I am using Jackson's XML binding to convert XML into a Java List, via an initial mapping to a Java POJO. What I have written works but I don't think I am using Jackson correctly. I am stuck with ...
John in MD's user avatar
  • 2,151
2 votes
1 answer
167 views

i have a class like this: @XmlAccessorType(XmlAccessType.PROPERTY) @XmlRootElement(name="someClass") public class SomeClass implements Serializable { [...] @XmlElement(name="field") ...
Clara.D's user avatar
  • 23