Dash (-) problems in to param of cfmail tag
Does coldfusion 7 support having an email address with a dash
in it. ie
[email protected]
I am getting this error in the log.
Invalid Addresses; nested exception is: class
javax.mail.SendFailedException: 501 5.5.4 Invalid Address
This is proving to be a big problem as dealing with many
users who have email addresses in this format.
Is there any workaround - ie converting email address to
ascii ??
Any help would be much appreciated.
Cheers
just put actual string
http://mysite/usermailregistrationpage?code=ADGBDGDFGAXAFADFDA
in the mail body, without surrounding it with <a> or
anything.
if your cfmail type is plain (default) it will be shown as
text, while
more recent email application may automatically show it as
link
(Thunderbird does).
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Similar Messages
-
Problem with vCalendar in CFMail tag
I've created an Outlook meeting invitation using cfmail and vCalendar and it works under normal conditions. But I have an event that is a three-day class. I attempt to create three invitations within the same cfm file, using three diffeent cfmail tags and using different times, subjects, descriptions, and summaries in the vCalendar. But when the three invitations arrive in my Outlook mailbox, Outlook thinks they are all the same event and posts tentative appointment to the last of the three days, but not to day 1 or day 2. Anyone have any clues as to what I'm doing wrong?
<cfmail to="#form.email#" from="#fromemail#" subject="Event to be named" type="multipart">
<cfmailparam name="content-class" value="urn:content-classes:calendarmessage">
<cfmailparam name="Content-Type" value="text">
<cfmailparam name="method" value="REQUEST">
<cfmailparam name="charset" value="utf-8">
<cfmailparam name="Content-Transfer-Encoding" value="7bit">
<cfmailpart type="text">
This is your meeting invitation for the following Insurance Administration Training and Development Class:
August Annuity University Day 3
</cfmailpart>
<cfmailpart type="text/calendar">
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20090820T140000Z
DTEND:20090820T170000Z
LOCATION:C5 Main
TRANSP:OPAQUE
SEQUENCE:0
UID:0
DTSTAMP:#tmstmp#
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:Insurance Administration Annuity University-- August Day 3\n
SUMMARY:Class
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC
END:VEVENT
END:VCALENDAR
</cfmailpart>
</cfmail>
</cfif>
<cfif form.session eq "AnnU-2">
<cfmail to="#form.email#" from="#fromemail#" subject="November Day 2 Annuity University Insurance Administration Training and Development Class" type="multipart">
<cfmailparam name="content-class" value="urn:content-classes:calendarmessage">
<cfmailparam name="Content-Type" value="text">
<cfmailparam name="method" value="REQUEST">
<cfmailparam name="charset" value="utf-8">
<cfmailparam name="Content-Transfer-Encoding" value="7bit">
<cfmailpart type="text">
This is your meeting invitation for the following Insurance Administration Training and Development Class:
August Annuity University Day 2
</cfmailpart>
<cfmailpart type="text/calendar">
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20091118T150000Z
DTEND:20091118T180000Z
LOCATION:C5 Main
TRANSP:OPAQUE
SEQUENCE:0
UID:0
DTSTAMP:#tmstmp#
DESCRIPTION:Insurance Administration Annuity University--August Day 2\n
SUMMARY:summary
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC
END:VEVENT
END:VCALENDAR
</cfmailpart>
</cfmail>
<cfmail to="#form.email#" from="#fromemail#" subject="November Day 3 University Insurance Administration Training and Development Class" type="multipart">
<cfmailparam name="content-class" value="urn:content-classes:calendarmessage">
<cfmailparam name="Content-Type" value="text">
<cfmailparam name="method" value="REQUEST">
<cfmailparam name="charset" value="utf-8">
<cfmailparam name="Content-Transfer-Encoding" value="7bit">
<cfmailpart type="text">
This is your meeting invitation for the following Insurance Administration Training and Development Class:
August Annuity University Day 3
</cfmailpart>
<cfmailpart type="text/calendar">
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20091119T150000Z
DTEND:20091119T180000Z
LOCATION:C5 Main
TRANSP:OPAQUE
SEQUENCE:0
UID:0
DTSTAMP:#tmstmp#
DESCRIPTION:Insurance Administration Annuity University--August Day 3\n
SUMMARY:summary
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC
END:VEVENT
END:VCALENDAR
</cfmailpart>
</cfmail>
</cfif>Hi there,
I think its because youre using the same UID for all your events. From what I understand, every event needs its own unique reference,
hope that helps. -
Passing params to custom tag from jsp
Hi all, I have a problem passing params back to my custom tag. The tag handler has a "getPageNumber()" method which returns a value. Initially the value is set and if a link is clicked it passes that param to the tag handler. I am trying to get this value from the tag handler to update the value on the link parameter.
Something like this:
// processed tag
<a href="mypage.jsp?page=1">Next page</a>
// clicking "Next Page"
<a href="mypage.jsp?page=2">Next page</a>
// jsp
<taglib:tag param="<%=getPageNumber()%>" />
// in tag lib
private pagenumber=1;
pagenumber++;
getPageNumber(){
return pagenumber;
setPageNumber(int pagenumber){
this.pagenumber=pagenumber
}I'm not sure if this is the best way to do this or if what I am trying to do is even possible.
Any advice would be greatly appreciated.
Thanks :)Hi all, I have a problem passing params back to my custom tag. The tag handler has a "getPageNumber()" method which returns a value. Initially the value is set and if a link is clicked it passes that param to the tag handler. I am trying to get this value from the tag handler to update the value on the link parameter.
Something like this:
// processed tag
<a href="mypage.jsp?page=1">Next page</a>
// clicking "Next Page"
<a href="mypage.jsp?page=2">Next page</a>
// jsp
<taglib:tag param="<%=getPageNumber()%>" />
// in tag lib
private pagenumber=1;
pagenumber++;
getPageNumber(){
return pagenumber;
setPageNumber(int pagenumber){
this.pagenumber=pagenumber
}I'm not sure if this is the best way to do this or if what I am trying to do is even possible.
Any advice would be greatly appreciated.
Thanks :) -
I have a form on my website that use the cfmail tag to send
information collected from a form via email. I am no longer getting
the email submitted from the form yet I'm also not getting an error
and I haven't changed anything. I suspect it's a relay issue but my
Sys Adm insist it's not and suggest I use mailto: I don't see the
point of using a client side solution when I have a server side
(and probably better) solution already in place.
I have listed the code I'm using to process the form for
reference in case I am missing something. Could anyone shed some
light on this for me. If it's not my code what are the downsides to
using a client side solution such as mailto ?
ThanksI'm assuming the isDefined leadershipopp and joinassociation
are checkboxes.
But..
If for any reason one of the other form elements wasn't
defined, you'd have an error condition.
Wrap the cfmail tag in a cftry block and then in the cfcatch
email an admin email with the cfcatch.message and cfcatch.detail.
Make sure you validate the form.email format, check cflib.org
for a udf for this. you could also use cfform validation routines.
An invalid email will throw an error.
Additionally, use cfparam tags for each of the form elements
with a default value. -
Does coldfusion 7 support having an email address with a dash
in it. ie
[email protected]
I am getting this error in the log.
Invalid Addresses; nested exception is: class
javax.mail.SendFailedException: 501 5.5.4 Invalid Address
This is proving to be a big problem as dealing with many
users who have email addresses in this format.
Is there any workaround - ie converting email address to
ascii ??
Any help would be much appreciated.
CheersFYI...our organization has a dash (-) in the domain name and
have no problems sending email via cfmail.
We're running CFMX7.0.2
Good luck -
Problem using different plugins via OBJECT tag
Hi all,
before installing JRE 1.5.0_06 everything was well. I had 3 different JREs (1.3.1_02, 1.3.1_08, 1.4.2_06) installed on one Windows system which could be invoked in Internet Explorer 6 for an applet as described in http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/version.html
example:
<HTML>
<HEAD>
<TITLE>Java Plugin 1.3.1_08</TITLE>
</HEAD>
<BODY>
Java Plugin 1.3.1_08:�
<OBJECT classid="clsid:CAFEEFAC-0013-0001-0008-ABCDEFFEDCBA" width="150" height="25">
Plugin missing
<PARAM name="code" value="HelloWorld.class">
</OBJECT>
</BODY>
</HTML>
(Note: The output of my HelloWorld class is the VM's version number.)
After installing 1.5.0_06 it doesn't work anymore. The new 1.5.0_6 is always used. Does anybody have a clue?
Thanks in advance
PeterI've seen a similar problem that didn't seem to exist with JRE 1.5.0_05 but does with 1.5.0_06. On the JRE 1.5.0_06 workstation the Windows registry contains CAFEEFAC-... entries for what looks to be all 1.3/1.4/1.5 JREs and points them all to the 1.5.0_06 JRE plugin dll, even though there is still a 1.4 JRE on the workstation. So even when you specify an OBJECT tag with a classid such as classid="clsid:CAFEEFAC-0014-0001-0010-ABCDEFFEDCBA" that should load the 1.4 plugin by design, the 1.5 plugin is loaded. This seems to defeat the multi-version JRE support. The JRE 1.5.0_05 workstation on the other hand didn't overwrite CAFEEFAC-... Windows registry entries for previous JREs, and properly loads a specfic JRE's plugin when specified by a CAFEEFAC-... classid in the OBJECT tag.
-
Problem with errorPage in page directive tag while proxying request from iPlanet to WebLogic
Hi,
We are using iPlanet 4.0 as the webserver and WebLogic 5.1 as the application server on different solaris machines. We have put our JSPs in the weblogic application server and proxy the requests from iplanet to weblogic.
We are facing a problem with the errorPage in the 'Page Directive' tag of the JSP. We have given xxx.jsp as an 'errorpage' parameter in the page directive tag. If we directly access the JSP from the WebLogic, and there is an system error, the error page specified in the JSP is getting displayed. But if we access the JSP from iPlanet and there is an system error, instead of displaying the error page, iPlanet is asking whether we want to download the file. If we say yes it downloads the actual JSP code itself. We have defined the mime types in obj.conf file as well as mime.types for the iPlanet.
If anyone knows how this can be solved, it would be of great help
Regards,
Krish
How did you configure the obj.conf file? proxy by mime type or ppath? It
seems errorPage.jsp was not proxyed and treated as a unknown mime type.
Krishnaraja <[email protected]> wrote in message
news:3a372d79$[email protected]..
>
> Hi,
>
> We are using iPlanet 4.0 as the webserver and WebLogic 5.1 as the
application server on different solaris machines. We have put our JSPs in
the weblogic application server and proxy the requests from iplanet to
weblogic.
>
> We are facing a problem with the errorPage in the 'Page Directive' tag of
the JSP. We have given xxx.jsp as an 'errorpage' parameter in the page
directive tag. If we directly access the JSP from the WebLogic, and there is
an system error, the error page specified in the JSP is getting displayed.
But if we access the JSP from iPlanet and there is an system error, instead
of displaying the error page, iPlanet is asking whether we want to download
the file. If we say yes it downloads the actual JSP code itself. We have
defined the mime types in obj.conf file as well as mime.types for the
iPlanet.
>
> If anyone knows how this can be solved, it would be of great help
>
> Regards,
> Krish
-
Problem with text-indent style , select tag on IE
Hi Developers,
i tried text-indent style class for <select> <option> tag .. The following given code is working on Mozilla fire box browser, but it is not working on IE..
I am trying to build a tree structure in the list box with multiple levels without ' ' and <OPTGROUP> does not support multiple levels.
Here is the example with multiple levels.
<html>
<head>
<title>Main </title>
<style>
.style {color:green;font-weight:bold}
.style1 {text-indent:45px;color:red;}
.style2 {text-indent:90px;color:blue;}
.style3 {text-indent:135px;color:green;}
</style>
</head>
<body>
<form name="form1">
<select name="retail" >
<option selected disabled value="">Tree Structure</option>
<option value="Father" class="style">Father</option>
<option class="style1" value="/retail/chandler/">Son 1</option>
<option class="style2" value="/retail/chandler/">Grand Son 1</option>
<option class="style2" value="/retail/chandler/">Grand Son 2</option>
<option class="style3" value="/retail/chandler/">Great Grand Son 1</option>
<option class="style3" value="/retail/chandler/">Great Grand Son 2</option>
<option class="style2" value="/retail/chandler/">Grand Son 3</option>
<option class="style1" value="/retail/chandler/">Son 2</option>
</select>
</form>
</body>
</html>
Please help me out by providing a solution to this issue.You have bigger problems than you realize. On this page - the one after the Splash intro page,
http://www.transgenic-rabbit-models.com/Home.html
As seen in Firefox with increased text. See screenshot.
Notice how your text boxes are colliding into other text boxes? This happens when web designers paint themselves into a corner with a rigid layout. Web pages must be flexible for all screen and text sizes.
You are using APDivs as a primary layout method which is a bad choice. And here is why.
http://apptools.com/examples/pagelayout101.php
Suggested Tutorials -
From Tables to CSS Web Design Part 1 -
http://www.adobe.com/devnet/dreamweaver/articles/table_to_css_pt1.html
From Tables to CSS Web Design Part 2 -
http://www.adobe.com/devnet/dreamweaver/articles/table_to_css_pt2.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
XML to ABAP Problems with many attributes in one Tag (Simple Transform)
Hi
i have a XML-Dataset like this. (It's a sample, in originl there are more fields under <Faktura> and more <Faktura>.) My Problem is reading the Attributes.
<?xml version="1.0" encoding="utf-8"?>
<Fakturen>
<Faktura AVnr="123456789" Amt="100" Lang="1" Nr="1209" RechnungsTyp="B" Status="7" Waehrung="CHF" Year="2011" ZahlungsTyp="B"/>
</Faktura>
</Fakturen>
In the Tag "Faktura are many Attributes. How can i read this. I have try this with this code and many other variation. But it does not work.
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined">
<tt:root name="FAKTUREN" type="ddic:ZKSO_HRNET_INTERFACE"/>
<tt:template>
<Fakturen>
<Faktura>
<tt:attribute name="AVNR" value-ref=".FAKTUREN.FAKTURA.AVNR"/>
<tt:attribute name="AMT" value-ref=".FAKTUREN.FAKTURA.AMT"/>
<tt:attribute name="LANG" value-ref=".FAKTUREN.FAKTURA.LANG"/>
<tt:attribute name="NR" value-ref=".FAKTUREN.FAKTURA.NR"/>
<tt:attribute name="RECHNUNGSTYP" value-ref=".FAKTUREN.FAKTURA.RECHNUNGSTYP"/>
<tt:attribute name="STATUS" value-ref=".FAKTUREN.FAKTURA.STATUS"/>
<tt:attribute name="WAEHRUNG" value-ref=".FAKTUREN.FAKTURA.WAEHRUNG"/>
<tt:attribute name="YEAR" value-ref=".FAKTUREN.FAKTURA.YEAR"/>
</Faktura>
</Fakturen>
</tt:template>
</tt:transform>
Thanks for help
Stefan
Edited by: Franziska Madl on Mar 2, 2011 2:39 PMHi
Thank you for your answer. The function module SMUM_XML_PARSE is a good way to Read a XML. Now I have found the Correct way with simple transfer and it works with an array too.
many regards
Stefan
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined">
<tt:root name="FAKTUREN" type="ddic:ZKSO_HRNET_INTERFACE"/>
<tt:template>
<Fakturen>
<tt:loop ref=".FAKTUREN.FAKTURA">
<Faktura>
<tt:attribute name="AVnr" value-ref="AVNR"/>
<tt:attribute name="Amt" value-ref="AMT"/>
<tt:attribute name="Lang" value-ref="LANG"/>
<tt:attribute name="Nr" value-ref="NR"/>
<tt:attribute name="RechnungsTyp" value-ref="RECHNUNGSTYP"/>
<tt:attribute name="Status" value-ref="STATUS"/>
<tt:attribute name="Waehrung" value-ref="WAEHRUNG"/>
<tt:attribute name="Year" value-ref="YEAR"/>
<tt:attribute name="ZahlungsTyp" value-ref="ZAHLUNGSTYP"/>
</Faktura>
</tt:loop>
</Fakturen>
</tt:template>
</tt:transform> -
Xsl/stylesheet transformation problem in soap response(usinf xmlx-tags.tld)
Hi,
I have problem in transforming the soap response using xmlx-tags.tld.....
I was not able to read the <EmpName> value from the returned xml...
The stylesheet / xsl does not return any elements if I use other then "/" in match
attribute : <xsl:template match="/">
here is my soap call and stylesheet in JSP:
<x:xslt media="html">
<x:xml>
<ws:soap ttl="360000">
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
... making soap call here...
</soap:Body>
</soap:Envelope>
</ws:soap>
</x:xml>
<x:stylesheet media="html">
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method="xmll" omit-xml-declaration="no"
doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" indent="yes" />
<xsl:template match="GetEmpResult">
<html>
<body>
Result: <B>Symbol <xsl:value-of select="EmpName"/></B>
</body
</html>
</xsl:stylesheet>
</x:stylesheet>
</x:xslt>
the SOAP response looks like this:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetEmpResponse xmlns="http://ws.cdyne.com/">
<GetEmpResult>
<EmpID>string</EmpID>
<EmpName>string</EmpName>
<SalAmount>decimal</SalAmount>
<Error>boolean</Error>
</GetEmpResult>
</GetEmpResponse>
</soap:Body>
</soap:Envelope>
I tried all the possibilities of template matches, but not succeeded....
Can somebody help me the correct <xsl:template> to access EmpName from the above
SOAP responses...
regards
VijayHi,
Dynamic xslt are not quite supported in OSB, there are some approaches that may be helpful for your case though...
Have a look at these...
http://atheek.wordpress.com/2011/12/21/using-xalanevaluate-to-parametrize-xpath/
http://beatechnologies.wordpress.com/2010/12/01/dynamic-xquery-in-oracle-service-bus/
Let me know how you go...
Cheers,
Vlad -
Problem with boolean attribute of JSP tag
Hi,
I've being trying to use a custom JSP tag, which has a boolean attribute, declared in the TLD as follows:
<attribute>
<name>checked</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
The JSP code snippet is:
<ui:check checked="<%= myBean.isChecked() %>"/>
where myBean.isChecked() returns a boolean value (primitive type).
It works fine on some web containers, but it causes a JSP compilation error on Oracle9iAS 9.0.3 Java Edition, which looks like the following:
Method toBoolean(boolean) not found in class test. _jsp_taghandler_57.setChecked( OracleJspRuntime.toBooleanObject( toBoolean( myBean.isChecked())));
After decompiling the container's JSP parser, I found what I think it's a bug. The java class generated by the JSP parser does not define a toBoolean method, and neither do its superclasses. The method is defined on the OracleJspRuntime class! I think the correct code would have to be something like:
OracleJspRuntime.toBooleanObject(OracleJspRuntime.toBoolean(...))
If I'm correct, then the "convertExpression" method of the "oracle.jsp.parse.JspUtils" class must be changed, because it outputs such wrong code for not just boolean types, but for all the primitive types.
So, has anyone ever faced this problem before? Does it have a workaround, or a patch? Is it included on the bug fixes for the 9.0.4 release?
Thanks!Instead of:
out.println("<body onload ="+strAlert+">");
Try this:
out.println("<body onload =\""+strAlert+\"">");
Add two \" around the alert call. -
JDev11g : Problem with Binding param (viewcriteria)
When I bind some variables (2 type number and 2 type date) to viewCriteria and start the web site I get very strange problem.
The Binding param is almost random (I set on binding variables Binding position), and because of this I get constant SQL errors (Invalid type and so on).
Some data from server log
First start of server:
[ pre]
<strong>[8945]Binding null of type 12 for 1</strong>
<strong>[8946] Binding null of type 12 for 2</strong>
<strong>[8947] Binding param 3: 41</strong>
<strong>[8948] Binding null of type 12 for 4</strong>
<strong>[8949] Binding param 5: 148</strong>
<strong>[8950] Binding param 6: 148</strong>
<strong>[8951] Binding param 7: 148</strong>
Second start of server:
<strong>[9213] Binding null of type 12 for 1</strong>
<strong>[9214] Binding null of type 12 for 2</strong>
<strong>[9215] Binding null of type 12 for 3</strong>
<strong>[9216] Binding param 4: 41</strong>
<strong>[9217] Binding null of type 12 for 5</strong>
<strong>[9218] Binding param 6: 148</strong>
<strong>[9219] Binding param 7: 148</strong>
<strong>[9220] Binding param 8: 148</strong>
[ pre]
And view criteria query looks like this :
FROM_DATE (binded to variable fromDate_bind type DATE and binding position set to 1)
TO_DATE (binded to variable toDate_bind type DATE and binding position set to 3)
WORKER_ID (binded to variable worker_bind type NUMBER and binding position set to 2)
CLASS (binded to variable class_bind type NUMBER and binding position set to 4)
[ pre]( ( ( ( FROM_DATE >= ? ) OR ( ? IS NULL ) ) AND (WORKER_ID = ? ) AND ( ( TO_DATE <= ? ) OR ( ? IS NULL ) ) AND ( ( CLASS = ? ) OR ( ? IS NULL ) ) ) )
This viewCriteria is shown on page as af:query (simple search form) and outputs results on af:table.
Is there any way to solve this random parameter binding?
Rok Kogovšekcheck out the fileUpload article
Using the File Upload Component
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/file_upload.html -
XML problem with one set of url tags
I have all my pages for my site on my xml map and have it successfully submitted to google webmster. All but one link, which google never recognizes for some reason. It is a strange little problem. The following is an example of how I have it written and it works for every page except for my login page!
<url>
<loc> http://www.myfaithworks.me/ </loc>
<changefreq>monthly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc> http://www.myfaithworks.me/apps/auth/login?try=1&next= </loc>
<changefreq>monthly</changefreq>
<priority>1.0</priority>
</url>
Refering to the latter, the bottom tags are the problem, google will not allow me to submit for some reason. I think the problem is within the link, but this is the actual link. I don't knw what to do. I knw the tags have no error, and all my other pages have been accepted without any errors.Try this, it is possible that the error is because of '&' or '?'. Having a CDATA will ensure that the server will not try to parse those but instead treat them as text/characters.
<url>
<loc><![CDATA[http://www.myfaithworks.me/apps/auth/login?try=1&next=]]></loc>
<changefreq>monthly</changefreq>
<priority>1.0</priority>
</url> -
Problem accessing web service: unexpected XML tag
Hi,
I access a web service with SOAP 1.2 via HTTP 1.1. I used wsimport on the WSDL to generate the stubs (I only use Java 6).
The web service is a php-Script running on a web server (maybe delegates this in the background, I have no access nor intimate knowledge of the server). This script provides both the WSDL (via GET) and the service (via POST). When I use my generated client I always end up with the same exception:
Exception in thread "main" com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://www.w3.org/2003/05/soap-envelope}Envelope but found: {http://schemas.xmlsoap.org/wsdl/}definitions
at com.sun.xml.ws.streaming.XMLStreamReaderUtil.verifyTag(XMLStreamReaderUtil.java:203)
at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:186)
at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:163)
at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:135)
at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:294)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:173)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:88)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
at com.sun.xml.ws.client.Stub.process(Stub.java:248)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:134)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:244)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117)
at $Proxy45.hello(Unknown Source)
at client.Client.main(Client.java:37)The exception occurs in the line with the first use of a service method. Somehow the service seems to issue a GET rather than a POST and ends up requesting the WSDL file which generates parsing errors.
So the code looks something like this:
Service service = new Service();
ServicePort port = service.getServicePort();
port.soSomething(); // <- exceptionThe conversation is SSL encrypted so I can't look at the conversation in Wireshark or similar tools. Maybe there is a problem because the same URL is used for both WSDL and SOAP?My apologies. It was a server problem.
-
Blinking dash problem on Macbook 2008 unibody after installation Windows 7
Hello everybody,
I installed Windows 7 (professional x86) with bootcamp (3.0.1), installation good, but when I want to boot on Windows 7, I have a blinking dash and I can't do anything.
I have a macbook 2008 unibody, last version of mac osx.
Before I had windows XP and I don't had any problem.
Need help plz.
Any suggestions ?
Regards.I need help!! T-T
Maybe you are looking for
-
Using 6G mini to transfer 21GB library to new computer
My mini is only 6G but my library is 22GB. How do I use the mini to transfer the entire library to a new computer?
-
How to update\insert data into a NVARCHAR column using ODBC API
I am trying to update a Sybase table via Microsofts ODBC API. The following is the basics of the C++ I am trying to execute. In table, TableNameXXX, ColumnNameXXX has a type of NVARCHAR( 200 ). SQLWCHAR updateStatement[ 1024 ] = L"UPDATE TableNameXX
-
Adobe After Effects Crahsing on Start up
I just added a new SATA hard drive and after getting it partitioned several of my Adobe Applications crash upon start up to include After Effects, IIllistrator, Encore, and Bridge. The After Effects Error message indicates that there is an issue wit
-
Hi there, I'm currently producing a training webinar, filming with iSight in imovie '09. The submission requirements for the webinar are (this is for Create Space for Instant video on Amazon, if that is helpful): Your source copy must contain only AU
-
PowerShell GUIs - Active Directory, Directory Object Picker?
So getting the OpenFileDialog box is amazingly easy in PowerShell so I assumed the DirectoryObjectPicker might also be as easy. However, I cant' find any reference for using PowerShell with the DirectoryObjectPicker. Can it be done? Ultimately, wha