[jibx-users] bug in Jibx binding for Collection with option value
Hi, I believe I found a bug when jibx tries to marshal a collection with optional values in it. In generated Jibx_BungeAdapter class, it doesn't check if the value zipcode in a object is null or not. Here is my mapping, mapping name=NumberResponseWrap class=com.crsoftwareinc.crs.core.webservice.dialer.binding.CampaignNumberResponseBindingObject ns=http://www.crsoftwareinc.com/xml/ns/telecom/campaign_number_v1_0; value name=campaign field=campaignShortName / collection name=numbers field=numbersObj structure name=record type=com.crsoftwareinc.crs.core.webservice.dialer.binding.PhoneInfoTypeBindingObject value name=key field=key / value name=type field=type / value name=number field=number / value name=zipcode field=zipcode usage=optional / /structure /collection /mapping __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
[jibx-users] incorrect code generated for custom exception by Axis2 WSDL2JAVA using Jibx mapping
I defined a fault in my wsdl file for a custom exception. I also use Jibx for the mapping. When I use wsdl2java to generate the code, it doesn't care about the mapping and the custom exception. It always generates an exception class from the wsdl file. Anybody experienced the same problem ? Thanks John My wsdl file, ?xml version=1.0 encoding=UTF-8? wsdl:definitions name=telecom targetNamespace=http://www.crsoftwareinc.com/xml/ns/telecom/agent_request_v1_0; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:tcom=http://www.crsoftwareinc.com/xml/ns/telecom/agent_request_v1_0; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsd1=http://www.crsoftwareinc.com/xml/ns/telecom/common_types; wsdl:documentation This document describes the telecom control service for agents. /wsdl:documentation wsdl:types xsd:schema xmlns:xsd=http://www.w3.org/2001/XMLSchema; elementFormDefault=qualified targetNamespace=http://www.crsoftwareinc.com/xml/ns/telecom/agent_request_v1_0; xmlns:com=http://www.crsoftwareinc.com/xml/ns/telecom/common_types; xsd:import namespace=http://www.crsoftwareinc.com/xml/ns/telecom/common_types; schemaLocation=telecom.xsd / xsd:element name=AgentLoginRequestWrap type=com:agentLoginType / xsd:element name=AgentLoginResponse type=com:loginResponseType / xsd:element name=DialerFault type=com:dialerFaultType / /xsd:schema /wsdl:types wsdl:message name=agentLoginRequest wsdl:part name=agentLoginRequest element=tcom:AgentLoginRequestWrap / /wsdl:message wsdl:message name=agentLoginResponse wsdl:part name=agentLoginResponse element=tcom:AgentLoginResponse / /wsdl:message wsdl:message name=dialerFaultMessage wsdl:part name=fault element=tcom:DialerFault/ /wsdl:message wsdl:portType name=telecom wsdl:operation name=agentLogin wsdl:input message=tcom:agentLoginRequest / wsdl:output message=tcom:agentLoginResponse / wsdl:fault name=fault message=tcom:dialerFaultMessage / /wsdl:operation /wsdl:portType binding file binding namespace uri=http://www.crsoftwareinc.com/xml/ns/telecom/common_types; prefix=q0 default=elements / namespace uri=http://www.crsoftwareinc.com/xml/ns/telecom/agent_request_v1_0; prefix=q1 / mapping name=AgentLoginRequestWrap class=com.crsoftwareinc.crs.dialer.dto.AgentLoginRequestDTO ns=http://www.crsoftwareinc.com/xml/ns/telecom/agent_request_v1_0; value name=system field=system / value name=campaign field=campaign / value name=extension field=extension / value name=mode field=mode serializer=com.crsoftwareinc.crs.dialer.dto.DialerUsageReference.toString deserializer=com.crsoftwareinc.crs.dialer.dto.DialerUsageReference.fromString / value name=station field=station / /mapping mapping name=AgentLoginResponse class=com.crsoftwareinc.crs.dialer.dto.AgentLoginResponseDTO ns=http://www.crsoftwareinc.com/xml/ns/telecom/agent_request_v1_0; value name=station field=station / value name=agentNumber field=agentNumber / value name=error usage=optional field=error / /mapping mapping name=DialerFault class=com.crsoftwareinc.crs.dialer.exception.DialerException ns=http://www.crsoftwareinc.com/xml/ns/telecom/agent_request_v1_0; value name=reason field=reason / /mapping /binding __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
[jibx-users] Jibx not generating prefix of namespace for abstract mapping
Hi, I need an urgent help.I am trying to generate a XML document using Jibx, preferable something like this, soapenv:Envelop xmlns:q0=http://www.crsoftwareinc.com/xml/ns/telecom/common_types; xmlns:q1=http://www.crsoftwareinc.com/xml/ns/telecom/agent_request_v1_0; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body q1:AgentLoginRequestWrap q0:systemDM3/q0:system q0:campaignPERSONAL/q0:campaign q0:extension7010020001/q0:extension q0:modeout/q0:mode q0:stationuniqueId/q0:station /q1:AgentLoginRequestWrap /soapenv:Body /soapenv:Envelope But instead, Jibx generates a XML document as the following, soapenv:Body xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;AgentLo ginRequestWrap xmlns:q0=http://www.crsoftwareinc.com/xml/ns/telecom/agent_reque st_v1_0systemSIM/systemcampaignPersonal/campaignextension7010020001 /extensionmodeout/modestationuniqueId/station/AgentLoginRequestWrap/soapenv:Body soapenv:Body xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;AgentLo ginRequestWrap xmlns:q0=http://www.crsoftwareinc.com/xml/ns/telecom/agent_reque st_v1_0systemSIM/systemcampaignPersonal/campaignextension7010020001 /extensionmodeout/modestationuniqueId/station/AgentLoginRequestWrap/ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users